When you use single quotes, the quoted string is handled exactly as written. In your case, perl looks for a file named vendor$date rather than the file named vendor0219.csv. Try using double quotes instead, so that variables can be recognized as such:
file => "vendor$date"
Ben
At 04:05 PM 2/19/2001 -0600, Greg Wardawy wrote:
>Hello all,
>Is there any way to send a file with a variable filename i.e. vendor$date (where $date = "0219.csv") using the Mail::Sender?
>Everything works fine if I put:
>file => 'vendor0219.csv'
>but it doesn't when:
>file => 'vendor$date'
>TIA
>Greg
>
>_______________________________________________
>Perl-Win32-Users mailing list
>[EMAIL PROTECTED]
>http://listserv.ActiveState.com/mailman/listinfo/p
Ben Wheeler
Programmer/Systems Administrator
eAccountable - Optimizes client online marketing and advertising investments
214-273-5491
benjamin@eAccountable.com
Sign up for our newsletter at http://www.eaccountable.com/contact_form.htm
View our current and past newsletters at http://www.eaccountable.com/news/
View our advertisement (very funny) http://www.eaccountable.com/viral.htm
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
- Mail::Sender - sending a file with a variable filename Greg Wardawy
- Re: Mail::Sender - sending a file with a variable fi... Ben Wheeler
- Re: Mail::Sender - sending a file with a variable fi... Bennett Haselton
- Re: Mail::Sender - sending a file with a variable fi... Carl Jolley