On 8/5/01 9:39 PM, Romek Krisztián wrote:
> Hello!
>
> What's the problem with my split?
>
> $line = "var = value";
> ($var, $value) = split(/\s*[=]\s*/, $line);
>
> Krisztian
>
> I experienced that $var and $value contained the first letter of the var and
> the value. Sometimes nothing. Where is the error?
>
> Krisztian
>
Your syntax is fine, and the split works just as it should. $var gets set to
"var" and $value gets set to "value". (The variables and strings with the
same names might be causing some confusion, though.)
-Michael Kelly
Email: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]