![]() |
|
go ahead... be a heretic | |
PerlMonks |
Splitting blunderby helmex (Initiate) |
on Apr 08, 2002 at 18:00 UTC ( [id://157495]=perlquestion: print w/replies, xml ) | Need Help?? |
helmex has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am having problems splitting a string. The string looks like this $string=\\Server\user; or sometimes $string=\\Server\dir\user; I tried to use the following statment: @tmp=split(/\/,$string); and @tmp=split(/\\/,$string); But when I try to print out elements of @tmp I get blank lines. Does anybody have any suggestions? %^+^%
Back to
Seekers of Perl Wisdom
|
|