Re: Converting "’" to an Apostrophe?



A. Sinan Unur wrote:
In the mean time, here in 2008, in the docs shipped with Perl 5.10

perldoc perlop

s Treat string as single line. (Make . match a newline)

Great, that's a clarification I wasn't aware of.

Hopefully, in the future (Perl 5.12?), "perldoc perlop" will contain a useful explanation of the /m operator as well. Or at least a reference to "perldoc perlre".

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages

  • Re: In perl 5.10, is $needle ~~ @haystack binary search?
    ... since @haystack is not guaranteed to be sorted. ... I don't see it in 'perldoc perlop'. ... array. ...
    (comp.lang.perl.misc)
  • Re: pattern match
    ... If you would have "use warnings;" then perl would have told you already what ... Another hint can be found in the man page for m// (perldoc perlop, ... Regexp Quote-Like Operators): ...
    (comp.lang.perl.misc)
  • Re: Seek positioning
    ... If FILEHANDLE is an undefined scalar variable (or array or hash ... "open"’s first argument can be a reference to a filehandle. ... As of perl ...
    (perl.beginners)
  • Re: print @{1} versus print @{11}
    ... > see that for perl those two things are treated differently in a subtle ... > digits and punctuation as name (so you are always allowed to use e.g. ... * In perldoc perlop, if you search for '@{' you find this gem: ... known use of the phrase "punctuation array." ...
    (comp.lang.perl.misc)
  • Re: awesome help, but, a question
    ... sample program, since I am new to perl, I am having trouble ... If all ranges in the string were processed correctly, it's empty, so return TRUE if it's empty and FALSE if it's not empty. ... I know it's complicated because it took me at least a couple of hours to figure it out, and I used some non-trivial features to do it. ...
    (perl.beginners)