I have this regex expression in a script that appears to do an array like split of a string but I cannot figure out how it does so. Any help appreciated
$fname = ($0 =~ m[(.*/)?([^/]+)$])[1] ; print "7 $errlog\n"; $fpath = ($0 =~ m[(.*/)?([^/]+)$])[0] ; print "8 $errlog\n"; The array elements 0 and 1 above extract the path to the executable and the executable filename but there is no array definition anywhere -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/