"..Is there easier way to put this?.."
Another way is to use canonpath method from File::Spec like so:
Output:use strict; use warnings; use File::Spec qw(canonpath); my $dir_str = "test/home/players/demo//thumbs/super.jpg"; print File::Spec->canonpath($dir_str);
In reply to Re: Need to change directory string.
by 2teez
in thread Need to change directory string.
by huchister
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |