in reply to Re^3: MIME::Lite and attachments
in thread MIME::Lite and attachments

Well, it didn't like the -e' or the -r, but

perl -e print "/usr/home/account/files/test.gif"

returned nothing.

Update: Per shmem's fine correction, a "1" is returned. I assume that is "true" and that my path is fine.


—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^5: MIME::Lite and attachments
by shmem (Chancellor) on May 25, 2007 at 07:33 UTC
    That returns nothing because you're not quoting your -e script... so your -e script consists of an empty print statement, and the filename is an argument to that script. Try
    perl -e 'print -r "/usr/home/account/files/test.gif"'

    That should print a '1' just before the next shell prompt.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}