in reply to How do I split a string containing path+filename
I agree with grinder that your var names are obfu, which has its place, but usually we choose descriptive names like $p and $f or even $pathname and $filename ;-)($b,$c) = $a =~ m|^(.*[/\\])([^/\\]+?)$|;
|
|---|