I think that might give you problems on non-Unix
platforms.
--
<http://www.dave.org.uk>
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
| [reply] |
| [reply] |
You are both are right, this not a portable way.
But I DID test it on Both Linux and Windows before submiting, and it worked.
And as at least one of the other solutions was more platform dependant (`pwd` don't work on windows),
I've thought it could be an acceptable answer.
I should have emphasized more about the portability issue, but I was mainly kidding davorg ;-)
I'll try to be more accurate next time.
"Only Bad Coders Badly Code In Perl" (OBC2IP)
| [reply] [d/l] |