Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: unlink fails to delete files with perculiar namesby salva (Canon) |
on Nov 22, 2011 at 09:45 UTC ( [id://939407]=note: print w/replies, xml ) | Need Help?? |
The only effect of putting some var inside quotes is to convert it into an string but Perl already does that for your implicitly most of the times. It only makes a difference in those rare cases where the internal representation of the variable determines what to do. For instance, the given construction in Perl 5.10 uses different comparisons when the internal representation of the scalar is a number or a string (and it is currently considered broken because of that).
In Section
Seekers of Perl Wisdom
|
|