>>>>> "Russell" == Russell Johnson <[email protected]> writes:

Russell>     open (NEWFILE, ">/tmp/$0.count") or die $!;

This will fail if $0 is "/the/full/path/to/the/script" instead of just
"script".

Bad idea to use $0 like that.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to