|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Interesting line which I read from Monk's snippetsby chanio (Priest) |
| on Jan 31, 2006 at 22:50 UTC ( #526912=note: print w/ replies, xml ) | Need Help?? |
|
I need to try $0 first! If I am calling the script from far away (for example in windows: C:\perl\bin\eraseme.pl) , then $0 has also the path attached to the name... ($0 eq 'C:\perl\bin\eraseme.pl'). So, it would not work as expected. I should first, get rid of the path... UPDATE: see a better way with liverpole's comment.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||