http://qs1969.pair.com?node_id=151657


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