Actually something like my ($file) = $path =~ m|([^/\\]+)$| will work on Win32 or *nix and will also not fail to find the filname of 'file.txt'
cheers
tachyon
In reply to Re: Re: Re: Getting the filename from full path name ?
by tachyon
in thread Getting the filename from full path name ?
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |