Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The scenario is, I need to get the filename and file path no matter it is in windows or unix type.
it can be either of the below my $long_file = '/abc/xyz/abc.txt'; my $long_file = '\abc\xyz\abc.txt'; In this case File::Basename and File::Spec wont return the directory part if the file name is windows format and i am running the script from unix. Any Solution for this? Thanks, Tom In reply to Re^2: parse file name
by Anonymous Monk
|
|