Tommy Nordgren wrote:
>
> Sep 21, 2005 kl. 9:54 PM skrev John W. Krahn:
>
>> Tommy Nordgren wrote:
>>
>>> How do you split a string on the equality character?
>>> Neither split (/=/,$myvar)
>>> nor split ('=',$myvar)
>>> appears to work
>>
>> How does it not work?
>
> When called with the syntax I've used, it returns a list containing
> a single string.
Maybe $myvar contains no data after the '=' character?
> I'll try without the paranthesis.
> Can it be that perl treats the entire source text between left and
> right paranthesis as a regular expression.
No, it treats the first argument (before the comma) as a regular expression
(with or without parentheses.)
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>