V
vurt
Hi,
I'm possibly not googling effectively, but I couldn't find an answer to
this.
Say I had a scriptanalogous something like:
require "/foo/bar/S01wibble.pm"
But the file is actually a symlink, ie:
/foo/bar/S01wibble.pm -> ../wibble.pm
How can I, in the required module, find the name of the symlink. I want to
be able to have behaviour analogous to rc scripts, and be able to have
different behaviour determined by the name I was called as. I hasten to
add I'm not actually trying to produce real rc scripts here...
Any tips would be welcome...
I'm possibly not googling effectively, but I couldn't find an answer to
this.
Say I had a scriptanalogous something like:
require "/foo/bar/S01wibble.pm"
But the file is actually a symlink, ie:
/foo/bar/S01wibble.pm -> ../wibble.pm
How can I, in the required module, find the name of the symlink. I want to
be able to have behaviour analogous to rc scripts, and be able to have
different behaviour determined by the name I was called as. I hasten to
add I'm not actually trying to produce real rc scripts here...
Any tips would be welcome...