On Tue, 2006-09-05 at 01:30 -0700, John W. Krahn wrote:
> 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.


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
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