in reply to Mass Mail

I'm i setting the path right? This is what i have: $mailprog='d:\WEBSVR\blat\blat.exe'; but i get an error that says "the system cannot find the path specified" Thanks for your help, Kiko

Replies are listed 'Best First'.
RE: Re: Mass Mail
by Corion (Patriarch) on Jul 13, 2000 at 12:29 UTC

    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 ;)

      It's in single quotes, thus, there's no interpolation:
      $ perl print '\d\thi\n'; \d\thi\n[chromatic@firewheel ]$