On Thu, Feb 21, 2002 at 10:47:43AM +1030, Daniel Falkenberg wrote:
> $string = "Business&PersonalFAD AFD:test(Regional)";
> 
> @line = split/\s+/, $string;
> 
> Now $line[1] prints nothing?  Am I doing something wrong here?

    > perl -wle '@line = split(/\s+/, $ARGV[0]; print $line[1];'
      "Business&PersonalFAD AFD:test(Regional)"
    AFD:test(Regional)

(The command line was wrapped; it should all be on one line)

Perhaps your input isn't as clean as you thing; are you certain that's a
space?


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to