Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to split "/"

by The_Ghost (Novice)
on Apr 29, 2014 at 10:41 UTC ( #1084298=note: print w/ replies, xml ) Need Help??


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 ) = ...


Comment on Re: How to split "/"
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1084298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2014-09-19 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls