>Lightning flashed, thunder crashed and Walnut <[EMAIL PROTECTED]>
>whispered:
>| Why not split it into an array first:
>|
>| @fields =~ split(!/!, $string);
>|
>| $index = $fields(3);
>| $value = $fields(5);
>
>This does not do what I think you think it does. ;-)
Neither does this bit:
>| @fields =~ split(!/!, $string);
without telling Perl that that's a match:
@fields =~ split(m!/!, $string);
Otherwise it'll take the negation of whatever follows up until the next / ...
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]