I want to do the same as the Unix 'basename' command, i.e. split off the path from a file. I'm trying
and getting
I've tried a number of variations but and re-read 'prelrequick' but I'm not having any success. What should I be doing?
Thanks
On the internet no one knows you're a dog
Columb Healy
Code:
perl -e 'foreach ( "/path/to/file" ) { s!.+/!!; print "$_\n"; }
Code:
Modification of a read-only value attempted at -e line 1.
Thanks
On the internet no one knows you're a dog
Columb Healy