Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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
Node Status?
node history
Node Type: note [id://327671]
help
Chatterbox?
[marto]: oiskuu sadly yes
[Your Mother]: My cat used to climb into the freezer when I opened it. Once I closed it and left him for 5 minutes hoping to disuade the habit. When I opened it expecting a cat eager to never return he just stared at me. Had to pull him out.
[Your Mother]: oiskuu, I think we should just be friends.
[marto]: the 'cool' place to hang out
[Your Mother]: ♫ Caffeine, caffeine, caffeine, caffeine. There will be answer, caffeine. ♫ ♬
[oiskuu]: Ahh, old cats with rheuma. I think (s)he was saying, "dude, NOT cold enough."

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2017-12-18 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (489 votes). Check out past polls.

    Notices?