Or with your variablesmy $path = '/home/temp//login' ; my ( @parts ) = ( $path =~ /([\/\\]?\w+)(?(?=[\/\\]+\w+[\/\\]*?$)[\/\\ +]+)(?=$|[\/\\])?/g ); warn Dumper \@parts ;
my ( $a, $b , $c ) = ...
In reply to Re: How to split "/"
by The_Ghost
in thread How to split "/"
by Jaycob777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |