public marks

PUBLIC MARKS from sylvainulg with tags perl & compile

25 July 2011 10:45

perlfaq6 - what is /o really for ?

(via)
The /o option for regular expressions (documented in perlop and perlreref) tells Perl to compile the regular expression only once. This is only useful when the pattern contains a variable. Perls 5.6 and later handle this automatically if the pattern does not change.

sylvainulg's TAGS related to tag perl

api +   book +   buggy +   cheat sheet +   coding +   compile +   content indexing +   desktop +   event notification +   gimp +   graphics +   kernel +   library +   linux +   png +   programming +   regexp +   sdl +   tips +   tutorial +   ubuntu +   xml +