In a message dated 3/25/2004 6:02:03 PM Eastern Standard Time, [EMAIL PROTECTED] writes: >Any differences between strings quoted with ' vs "? >I know the '' delimited strings don't get variables and other nice >things converted to values, does that make '' faster when using constant >strings than ""?
' and " are different. The Single quote is faster, to answer your question. Double quotes are interpolated. In simple terms, perl will break apart (or try to) double quote string to single quote string, hence its slowness. So something like: print "You picked $number"; will be changed to print 'You picked ' . $number; (In this case, the fastest solution would be print 'You picked ', $number;) All this kind of stuff is gone over in Master Perl Algorithms, which is a good read. -will (the above message is double rot13 encoded for security reasons) Most Useful Perl Modules -strict -warnings -Devel::DProf -Benchmark -B::Deparse -Data::Dumper -Clone (a Godsend) -Perl::Tidy -Beautifier