On 10-12-03 09:12 AM, oldyork90 wrote:
Is there any efficiency gained using the modifier /o when used in a sub?
The /o modifier is done automatically if there's no variable in the pattern. You would use it when there is one, to inform perl that its contents will not change during the run of the program. Of course, if its contents changes, don't use /o.
-- Just my 0.00000002 million dollars worth, Shawn Confusion is the first step of understanding. Programming is as much about organization and communication as it is about coding. The secret to great software: Fail early & often. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/