http://www.perlmonks.org?node_id=1084298


in reply to How to split "/"

Try with this ( you can use it on windows )
my $path = '/home/temp//login' ; my ( @parts ) = ( $path =~ /([\/\\]?\w+)(?(?=[\/\\]+\w+[\/\\]*?$)[\/\\ +]+)(?=$|[\/\\])?/g ); warn Dumper \@parts ;
Or with your variables
my ( $a, $b , $c ) = ...