in reply to Meaning for the following regular expression

If a regular expression has a /x modifier then white space is not significant and it may contain comments.

m/foor # this is not a comment/
does not contain a comment while
m/foo # this is a comment bar/x
does and matches 'foobar'. See perlre and perlreref for more details.

There is no difference between tr/// and y/// except that old awk sed hackers feel more at home;-)

Replies are listed 'Best First'.
Re^2: Meaning for the following regular expression
by Jim (Curate) on Feb 02, 2008 at 23:30 UTC
    I think you mean old sed hackers like me.

    But I'm an old shell hacker, too, so I use tr///, not y///.

    Cheers!

    Jim

      Blushes with shame, you are absolutely right. It's been so long since I've used either that my memory is failing me;)