Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Note: it often helps you and us if you reduce your sample code to just demonstrate the bug. Most likely in the process you will solve the problem, but even if you don't you will understand it better. In either case you will remember the lesson better at the end of the day. Your sample could have reduced to:
Prints:
where I expected:
I know what I mean. Why don't you? has a few other related tips that may help in the future. Why no use strict by the way? Especially puzzling as there is a use warnings. Added: Note too that the 3 parameter open is much preferred over the two parameter open (see open) for lucidity and security.
looks wrong! Do you really intend to assign $target1 to $cols[11]? Note that the if is (effectively) testing the contents of $target1, not equality of $target1 and $cols[11]. DWIM is Perl's answer to Gödel In reply to Re: using split
by GrandFather
|
|