Just another Perl shrine | |
PerlMonks |
Different behavior when parsing $0 on Solaris and Win32by dirac (Beadle) |
on Sep 28, 2011 at 12:37 UTC ( [id://928286]=perlquestion: print w/replies, xml ) | Need Help?? |
dirac has asked for the wisdom of the Perl Monks concerning the following question: Hi monks! I have tried to extract the name of the running script without his extension, to create a new file with same name but with ".log" at end. On win32 it works fine, but on Solaris I get only ".log". This is the code:
On Win32 the output is:
On Solaris with perl, v5.8.8 built for sun4-solaris
Any suggestions? Thanks
Back to
Seekers of Perl Wisdom
|
|