Hello Silvio,
Thursday, July 12, 2001, Silvio Luis Leite Santana <[EMAIL PROTECTED]> wrote:
SLLS> Just to confirm some thoughts I had...
SLLS> Since double quotes need to be searched for variable interpolation,
SLLS> while single quotes don't, I should always (whenever possible) prefer
SLLS> single quotes instead of double quotes in my programs, because:
SLLS> print 'hi all';
SLLS> would be faster than
SLLS> print "hi all";
SLLS> Am I correct?
customize and check this for youself:
use Benchmark;
timethese( 1e7, {
'one' => sub { my $a = 'hi all'; },
'two' => sub { my $a = "hi all"; },
});
Best wishes,
Maxim mailto:[EMAIL PROTECTED]