Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
perl equivalent of python's underscore?by Anonymous Monk |
on Oct 27, 2010 at 15:54 UTC ( [id://867759]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi -- I was wondering if perl has a throw-away variable so that I can toss unwanted values in list assignment, e.g.,
The above almost works, except, I am cautious about assignment to $_, and I am wondering what it means if I declare $_ to be my-scoped. Thanks!
Back to
Seekers of Perl Wisdom
|
|