hello,
i am attempting to parse the path of a file into 2 variables.
here is the code:
$fullFilePath = "Q:\yes\iam\perl\newbie\file.txt";
$pathto,$file = substr($fullFile =~ m/(.*)\\(.*)/i);
print $pathto;
print $file;
the error is:
Not enough arguments for substr at Y:\pdf\test.pl line...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.