Thanks for your quick response...! Here's what the first part of the code looks like:

my ( $Carrier_Option, $printHelp, $version, $Nr_of_TP, $is_BS, $my_legend, $curr_dir, ); GetOptions( "c|C|carriers=s"=>\$Carrier_Option, #string "t|T|TP=i"=>\$Nr_of_TP, #numeric "h|H|Help"=>\$printHelp, #boolean "v|V|Version"=>\$version, #boolean "b|B|BS|bs|Bs"=>\$is_BS, #boolean "l|l|legend=s"=>\$my_legend, #string "a|A|altitude=i"=>\$BS_RadioHeight, "d|D|Directory=s"=>\$curr_dir, );

I run the script at first as follows:

perl Analyzer.pl -t 2 -c "4 1 2 3 4"

If the options are not entered, then default settings are considered in the script's execution, and the active directory is taken from the current local working directory. The second part of the script (which is where i need the help) is still not complete, but my plan is to have something as follows:

print "To process another log file, enter the path to the log file alo +ng with the options, or enter 'x' to exit: "; my $New_User_Input=<STDIN>; chomp $New_User_Input; my $new_options=GetOptionsFromString($New_User_Input);

I'm not sure how this works with GetOptionsFromString perhaps?? or some other method?

I hope this makes it a little clearer to what I intend to do.

Thanks...!

In reply to Re^2: How to process Getopt::Long from STDIN by m_jaser
in thread How to process Getopt::Long from STDIN by m_jaser

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.