in reply to Re: perl script that accepts parameters via STDIN
in thread perl script that accepts parameters via STDIN

I checked Getopt::Long before posting, but couldn't find a mention of parsing STDIN, like the OP wanted.

How do you fix that?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re^2: perl script that accepts parameters via STDIN

Replies are listed 'Best First'.
Re^3: perl script that accepts parameters via STDIN
by haukex (Archbishop) on Nov 29, 2016 at 13:43 UTC

    Hi LanX,

    Getopt::Long has the functions GetOptionsFromArray and GetOptionsFromString - I only know this because a while back I hacked together a solution to use Getopt::Std on arbitrary strings...

    Regards,
    -- Hauke D

Re^3: perl script that accepts parameters via STDIN
by stevieb (Canon) on Nov 29, 2016 at 13:37 UTC

    I think I may have misinterpreted the question ;)