Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: String matching and Regular Expressions

by iza (Monk)
on Mar 14, 2002 at 13:10 UTC ( [id://151657]=note: print w/replies, xml ) Need Help??


in reply to String matching and Regular Expressions

even after reading the tutorial and the perlman:perlre page, i still don't understand why everywhere it is said to use s/// or m//, and every example use ~s/// or ~m// - i mean, i don't understand where this ~ comes from and what it means ...
  • Comment on Re: String matching and Regular Expressions

Replies are listed 'Best First'.
Re: Re: String matching and Regular Expressions
by rdfield (Priest) on Mar 14, 2002 at 13:18 UTC
    It's not ~s and ~m but =~. See perlop for details.

    rdfield

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://151657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found