Is there any efficiency gained using the modifier /o when used in a sub?
$x = 'a string';
my $status = mysub($x);
sub x {
my ($string) = @_;
if ($string =~ /^somepatternhere/o) {
return 1;
}
return 0;
}
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
