Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: perl problem with input line -e

by rubasov (Friar)
on Feb 11, 2010 at 00:43 UTC ( #822553=note: print w/replies, xml ) Need Help??


in reply to perl problem with input line -e

There is nothing wrong with your perl one-liner, your usage of echo is what misleads you. Try echo "-e" alone and see that it prints only a newline. That is because echo interprets your "-e" as on option, not a string to print.

Try this instead: printf -- "-e\n"

The '--' signifies the end of options, anything follows that will be interpreted as an argument to print. This is the common unix way to use an argument that looks like an option.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://822553]
help
Chatterbox?
[marto]: hopefully everyone had a good weekend
[Discipulus]: yees.. masonry, shaving of the ceiling (dunno if shaving is the right term..) 20hours in the weekend.. so veery good ;=)
[LanX]: yes I worked ...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-02-19 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (260 votes). Check out past polls.

    Notices?