akm2 has asked for the wisdom of the Perl Monks concerning the following question:
In the bit of code below, I would expect $apppath to equal C:\run.com, Instead $apppath equals 2. Whats up with this? How do I get the results I need? Example code would great.
$myline = "192.168.0.1|run|C:\run.com|"; ($ip, $appid, $apppath, $extra) = split(/|/, $myline); print "$apppath\n";
Edit by tye as a title of simply "split" breaks that simple search.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: split
by scain (Curate) on Aug 07, 2001 at 22:23 UTC | |
Re: split
by dragonchild (Archbishop) on Aug 07, 2001 at 22:28 UTC | |
(jeffa) Re: split
by jeffa (Bishop) on Aug 07, 2001 at 22:27 UTC | |
Re: split
by faure (Sexton) on Aug 07, 2001 at 22:58 UTC | |
by John M. Dlugosz (Monsignor) on Aug 08, 2001 at 02:05 UTC | |
Re: split
by Anonymous Monk on Aug 07, 2001 at 23:50 UTC | |
Re: split
by Anonymous Monk on Aug 08, 2001 at 11:17 UTC |