The '_' is a valid character for a variable name, hence Perl looks for $mon_ and doesn''t find it (use strict will tell you that).
You can use $mon . '_' . $date, or $mon . "_$date" or my favorite: "$mon\_$date"
Update: of course you should do this only after performing the magnus manoeuver.
In reply to Re: Creating Filenames using variables
by mirod
in thread Creating Filenames using variables
by rass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |