in reply to use File::Basename - need to specify OS?
No prob here if you use File::Basename (I don't know File::Base)
$ cat foo use File::Basename; $\="\n"; print $^O; $file = 'C:/Windows/images/hello.gif'; $filename = basename($file); print $filename; $ perl foo freebsd hello.gif
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use File::Basename - need to specify OS?
by kiat (Vicar) on Apr 21, 2004 at 07:00 UTC | |
by b10m (Vicar) on Apr 21, 2004 at 07:10 UTC | |
by kiat (Vicar) on Apr 21, 2004 at 08:42 UTC | |
by b10m (Vicar) on Apr 21, 2004 at 09:01 UTC | |
by kiat (Vicar) on Apr 21, 2004 at 09:13 UTC |