in reply to using arguments

Your question confuses me, I'm not sure what you mean. What is perltst? Is it a file? if so you have to open the file, read it's content etc. You might want to investigate one of the GetOpt modules and supply all the data inside perltst on the command line.

Replies are listed 'Best First'.
Re^2: using arguments
by Bass-Fighter (Beadle) on Dec 19, 2008 at 11:07 UTC
    yes that perltst is a file

      From the documentation:

      Mail::Internet->new([ARG], [OPTIONS]) ARG is optional and may be either a file descriptor (reference to +a GLOB) or a reference to an array. If given the new object will be i +nitialized with headers and body either from the array of read from t +he file descriptor.

      Under the assumption that your file is in the right format you could construct a file descriptor to the file and pass that into the constructor.

        the most irritating thing is that I need the code of perltst in hash. not in glob... and I can't find a way to do that

        + I don't everything understand what I find because I'm a newbie in perl