Try this:
print '$filename', "\n"; print "$filename", "\n";
And for more information, you can read this tutorial on quotes in perl.
In reply to Re^3: While is not working when using variable
by Eily
in thread While is not working when using variable
by parthodas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |