You need to do chomp $filename after reading it from STDIN and before doing anything else with it
/J\
Edit by castaway - reparented from problem with naming the file with current date and time, a dupe
In reply to Re: problem with naming the file with current date and time
by gellyfish
in thread problem with naming the file with current date and time
by Arbariya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |