|
|
| No such thing as a small change | |
| PerlMonks |
Re: File handling? How to make the better one?by tobyink (Prior) |
| on Jun 11, 2012 at 15:08 UTC ( #975589=note: print w/ replies, xml ) | Need Help?? |
|
Sweet Jesus! Is this you trying to check whether a file exists?! You know Perl does have built-ins for checking the existence of a file...
Using a few commodity modules from CPAN, you can make your life a lot easier...
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||