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.
In reply to surprised by split by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |