Ananda You might get a better response to your question if you would clarify your needs. I've read your original post and this one several times, and it's still not clear to me what it is you are trying to do.

What do you mean by "send key value pairs that represent name and associated email ID to a perl file"?

In your original post you ask "Is it possible to pass hash values (%a, %b) to perl script files (abc.pl) from command line", and then show a comand line with %a and %b.

Where would these variables/values come from? Another script, a database? WOuld you type them?

In this post you mention that you want to pass key/value pairs (name/emailid) into a script...but you don't say where you would get those pairs from?

Reading between the lines, it sounds like your have an existing script that has a hash with the key/value pairs in it, and you have another script that takes a name & emailid pair and uses it to call sendmail, and you wish to call the second script from within the first and pass the key/value pairs from the first to the second, either individually or en-masse.

If either of these is what you want, then both are possible, but you need to explain your problem more clearly, perhaps show a little code of how/where the hash is built and how/when you want to pass the data.

Given a little more information, any number of monks would be only to pleased to help.


Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.


In reply to Re: Re: Re: Passing HASH values to a abc.pl file from command line by BrowserUk
in thread Passing HASH values to a abc.pl file from command line by Ananda

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.