Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: A problem with using the split command

by sunadmn (Curate)
on Apr 30, 2004 at 20:14 UTC ( #349507=note: print w/ replies, xml ) Need Help??


in reply to A problem with using the split command

I could be way off here but I think you need to escape the '\' like this:

foreach my $pwd (split('/\/\','/\foo/\foo1/\foo2'))


SUNADMN
USE PERL


Comment on Re: A problem with using the split command
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2015-07-28 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls