Hi Monks,
I am trying to write a wrapper on view creation tool, that is developed in perl,its an commandline tool.
For every new view creation i have to repeate several steps by selecting argument option.
On command prompt i have to select the option and ENTER key to proceed to the fallowing step,i don't know
how to do event based scripting in perl,is there any way in perl to record keyboard events.
For reference below is the tool i am using.
[ 1] [l] LOOK at views of a different user [ 2] [c] CREATE a New View [ 3] [s] SYNCHRONIZE a view from another region [ 4] [d] DELETE (remove) one of the views below [ 5] [q] QUIT (exit from viewmgt) [ 6] patilr__070413_test_view1 [ 7] patilr__070420_test2 Action [1 - 7, letter shortcuts] ==>
After selecting anyone option i have to press enterkey to proceed nextstep,
how can i capture keyevent in script,Can any one help me to find a solution for this.
Keep pouring your ideas.....

In reply to Is it possible in perl to detect keyboard events like as "when keydown" by perladdict

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.