Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Re: Re: Re: "bareword found near www" in oneliner

by Anneq (Vicar)
on Feb 09, 2004 at 17:10 UTC ( #327671=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: "bareword found near www" in oneliner
in thread "bareword found near www" in oneliner

It's entirely possible that I'm missing something here, but I thought I answered the OP's requirement. The original command line code was:
perl -MURI::Escape -MLWP::Simple -e "$t = get "http://www.cgiscript.ne +t/encrypt_index.htm"; print uri_unescape $t;"

Since his double quoted string (the URL) doesn't have any escaped characters in it, he should be able to get away with using single quotes around it.

The following works at the command line:

$perl -we"print 'http://somewhere.com'"

If I'm missing something, please excuse my newness at this.

Regards,
Anne

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: "bareword found near www" in oneliner
by Anomynous Monk (Scribe) on Feb 09, 2004 at 18:17 UTC
    Sorry for giving you a hard time. In:
    perl -we"print 'http://somewhere.com'"
    perl is supporting the ' as a special character (that quotes a non-interpolating string), not Windows.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2023-12-10 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?