No such thing as a small change | |
PerlMonks |
Re: Implicit assignment to $_by arnaud99 (Beadle) |
on Feb 26, 2013 at 16:08 UTC ( [id://1020717]=note: print w/replies, xml ) | Need Help?? |
Hi, I am unsure about what you are trying to achieve here as there is very little of the code. $_ is a global variable and quite a few places in perl use $_ as the default. To know more use 'perldoc perlvar' and you will have a good explanation of where and how $_ can be used. Below is a small program that uses $_ as the default for both the while loop and the print statement.I hope this helps. Arnaud.
In Section
Seekers of Perl Wisdom
|
|