q: s/const/CONST/o or s/const/CONST/ ? 
Author Message
 q: s/const/CONST/o or s/const/CONST/ ?

I have found in the Perl FAQ ("What is /o really for?") the following
information:

    Use of /o is irrelevant unless variable interpolation is used
    in the pattern...

Does it mean, that when the constant pattern (here `const') is used
then /o makes no difference in the speed of evaluation?

Thanks for the answer,

Petr

--

TU of Brno, Dept. of Computer Sci. & Engineering;    tel. +420-(0)5-7275 218



Sat, 29 Apr 2000 03:00:00 GMT  
 q: s/const/CONST/o or s/const/CONST/ ?

: I have found in the Perl FAQ ("What is /o really for?") the following
: information:

:     Use of /o is irrelevant unless variable interpolation is used
:     in the pattern...

: Does it mean, that when the constant pattern (here `const') is used
: then /o makes no difference in the speed of evaluation?

: Thanks for the answer,

Yes. That is exactly what it means.

Similarly:

/m is irrelevant unless anchors (^ and/or $) are used in the pattern

/s is irrelevant unless dot (.) is used in the pattern

--
    Tad McClellan                          SGML Consulting

    Fort Worth, Texas



Sat, 29 Apr 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. New Const module

2. New Const Module (with corrected newlines)

3. Alias::const: avoiding `used only once...' warning

4. Script Hangs on use Win32::OLE::Const

5. wishlist: const

6. Question about Const package

7. WIN32::API - how to pass char * const

8. Win32::OLE::Const

9. Announce: Win32-Const 0.011, values for all Win32 constants

10. statics or const in perl ?

11. statics or const in perl ?

12. Copy a hash and const?

 

 
Powered by phpBB® Forum Software