|
|
| There's more than one way to do things | |
| PerlMonks |
Re^3: Editing just one column in a fileby BrowserUk (Pope) |
| on Nov 29, 2011 at 02:35 UTC ( #940507=note: print w/ replies, xml ) | Need Help?? |
|
Because the Perl syntax for an array slice is @a[ ... ]. If you enable warnings, you'll see that by using $a[1..3], the 1..3 is treated as a flip-flop operator comparing against $., and under most circumstances will produce false, which in the numeric context gets taken as 0:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||