Hi Romek,
Try with
\s*=\s*
Naren.
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
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]