in reply to Re: Fast morphing of SYBASE data to flat-file
in thread Fast morphing of SYBASE data to flat-file
you're asking Perl to compile each of the regular expressions again every time the subroutine sasify is called. You can avoid this with the "/o" operatorThis is a common misconception. In fact, the regular expressions are compiled once, at the same time as the rest of the program. The /o modifier makes a difference only when the RE includes a variable interpolation: in that case, it means the RE will contain the value of the variable at its first use, and will not change, regardless of whether the variable changes or not. In this case, since the REs are static strings, there is no re-compilation involved.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fast morphing of SYBASE data to flat-file (say "no" to /o)
by tye (Sage) on Mar 13, 2003 at 19:06 UTC |