in reply to Re: Mass Mail
in thread Mass Mail

Ooops - how could that one have been missed... It's one of my favourite mistakes as well - Perl treats the "\" character as a special character for creating stuff like \n (newline) and \t (tab). To create an actual "\" in a string, you have to use "\\". So the correct statement would be :

$mailprog='d:\WEBSVR\blat\blat.exe'; warn "Couldnīt locate the mail program at $mailprog\n" unless -x $ma +ilprog;

Update : chromatic told me that single quotes don't interpret the backslash - and he is right. My shell (bash played the nasty trick of interpretation on me, which is even more a symptom of my difficulties with backslash interpretation ;)

Replies are listed 'Best First'.
(chromatic) RE: RE: Re: Mass Mail
by chromatic (Archbishop) on Jul 14, 2000 at 06:46 UTC
    It's in single quotes, thus, there's no interpolation:
    $ perl print '\d\thi\n'; \d\thi\n[chromatic@firewheel ]$