Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: A readline + -e oddity: readline opens files even with -e --- need "readline STDIN" to read from console

by choroba (Cardinal)
on Nov 30, 2020 at 16:47 UTC ( [id://11124403]=note: print w/replies, xml ) Need Help??


in reply to A readline + -e oddity: readline opens files even with -e --- need "readline STDIN" to read from console

Another possibility would be to remove the consumed arguments from @ARGV:
perl -e 'system splice @ARGV; readline' echo foo

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11124403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-03-28 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found