Mr. Shawn H. Corey" schreef:
> John W. Krahn:

>> Anything used as a pattern is a string.  See the "Quote and
>> Quote-like Operators" section of perlop:
>
> Huh?
>
> Do you mean all strings can be used as a pattern?
>
>   split( quotemeta( $split_string ), $data_string );
>
>
> Or that patterns are built from strings?
>
>   split( /$split_string/, $data_string );
>
>
> What I meant was that:
>
>   split( $split_string, $data_string );
>
> works like the second one, which can surprise you since you would
> expect it to work like the first.

One exception: the pattern / / does not work like the pattern ' '.

-- 
Affijn, Ruud

"Gewoon is een tijger."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to