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?
%^+^%
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