in reply to Re: Need explanation: what \$_ and ${} do
in thread Need explanation: what \$_ and ${} do

Why the "s" modifier does not do anything?

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.
  • Comment on Re^2: Need explanation: what \$_ and ${} do

Replies are listed 'Best First'.
Re^3: Need explanation: what \$_ and ${} do
by chester (Hermit) on Nov 11, 2005 at 15:36 UTC
        s   Treat string as single line. That is, change "." to match any
            character whatsoever, even a newline, which normally it would not
            match.

    There are no .'s in the regex.

      ... which makes me learn that [^>] does match a newline :)

      Thanks for bothering, chester!

      Flavio
      perl -ple'$_=reverse' <<<ti.xittelop@oivalf

      Don't fool yourself.