Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: XML::Simple Issues

by isotope (Deacon)
on Dec 29, 2010 at 19:44 UTC ( [id://879685]=note: print w/replies, xml ) Need Help??


in reply to XML::Simple Issues

In your diagnostic one-liner, your double-quotes leave $INC to be shell-interpreted. Escape it:
perl -we "use XML::Simple; print \$INC{'XML/Simple.pm'}"


--isotope

Replies are listed 'Best First'.
Re^2: XML::Simple Issues
by Jenda (Abbot) on Dec 29, 2010 at 21:39 UTC

    Depends on the OS. Under Windows it would be all right without the backslashes.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

      That's fine, but the error he received is because on the Linux system he's using, he does need to escape the $.


      --isotope
Re^2: XML::Simple Issues
by tigerstorms (Initiate) on Dec 29, 2010 at 22:30 UTC
    I removed the double quotes and I get

    syntax error at -e line 1, at EOF
    Execution of -e aborted due to compilation errors.
    Warning: unknown mime-type for "{XML/Simple.pm}" --
    using "application/octet-stream"
    Error: no such file "{XML/Simple.pm}"

      Not to get further bogged down in this issue that's really secondary to your question, but you still need quotes; you just didn't go quite far enough and asked the shell to interpret $ENV instead of passing it to perl.

      codeacrobat's one-liner is better anyway.


      --isotope

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-20 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found