Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Anneq (Vicar)
on Feb 09, 2004 at 17:10 UTC ( [id://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 making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found