Hi Luca,
I haven't tested it, but my suspicion is that your first solution will
be faster because regular expressions (which don't contain variables)
are only compiled once, while you have a function call for every use
of lc.
By the way another alternative might be:
$extention =~ /\.bat/i
(whic
Hi all,
this could be trivial, and I suspect the answer is that the regexp
engine is smart enough, but suppose I want to test the following:
$extention =~ / \.bat | \.BAT /x;
is the following a better solution?
$extension = lc $extension;
$extension =~ / \.bat /x;
In other words, when testing f
Hi,
please see the instructions at the bottom of most emails to the list. Namely:
«
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
»
Regards,
Shlomi Fish
On Mon, 05 Jan 2015 19:44:54 -0600
"dchiggi