in reply to Re^2: You don't always have to use regexes
in thread You don't always have to use regexes
And to support your point, an invariant string inside double-quotes gets compiled down to a single quoted string. Any time wasted is not wasted at run-time.
$cat print.pl print 'Hello'; print "Hello"; # compiles to 'Hello' print "Hello $_"; $perl -MO=Deparse print.pl print 'Hello'; print 'Hello'; print "Hello $_"; print.pl syntax OK
5.005_03, 5.6.1 and 5.8.4 produce identical results.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: You don't always have to use regexes
by Ven'Tatsu (Deacon) on Feb 25, 2005 at 14:28 UTC |
In Section
Meditations