Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://349507]
help
Chatterbox?
and snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-09-26 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (296 votes). Check out past polls.

    Notices?