|
Re: On using $_ in subroutines: msg#00396perl-beginners
Bryan R Harris wrote: Bryan Harris wrote: local() only works on variables that are in the symbol table, in other words package variables. All variables that are a single puntuation character are package variables and some are global and effect all packages. local() does not create a variable it just masks the current value of a variable within the current scope. my() creates variables that are not in the symbol table and are visible only within the current block or file. Perl 5.10 is still at the .0 stage (5.10.0) and a lot of people like toWhy is perl on OS X still at 5.8.8? It's free, right? why wouldn't AppleOddly, perl won't let me do "my ($_) = shift;", so I'm stuck having to usePerl 5.10 *will* let you do "my $_". As of Perl 5.6 the odd numbered versions (5.7 and 5.9) are for development only. John -- Those people who think they know everything are a great annoyance to those of us who do. -- Isaac Asimov -- To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional commands, e-mail: beginners-help@xxxxxxxx http://learn.perl.org/
|
|
||||||||||||||||||||||||||
| News | Mail Home | sitemap | FAQ | advertise |