I want to make sure that I am using this correctly for efficiency.
I want to use $stuff as a regex but I want to store it in a data structure.
so when I do use it in a regex will it be more efficient than just saying
/$stuff/?
I cannot use the /o option because $stuff changes with each OUTER iteration.
ex:
foreach my $stuff (@stuffs){
$INFO{key1}{regex} = qr/$stuff/;
## do stuff using $INFO{key1}{regex} several times as so:
foreach my $test (@tests){ ## yeah I know I could store @tests as qr
regexs but this is an example
print "somthing" if $test =~ $INFO{key1}{regex};
}
}
thx for feedback
Nikola Janceski
Not until we dare to regard ourselves as a nation, not until we respect
ourselves, can we gain the esteem of others, or rather only then will it
come of its own accord.
-- Albert Einstein (1879-1955)
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]