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

Re: String to Perl data structure

by chromatic (Archbishop)
on Jul 13, 2007 at 06:12 UTC ( [id://626380]=note: print w/replies, xml ) Need Help??


in reply to String to PERL data structure

Can your PHP application emit JSON or YAML? If so, that's the easiest approach. Otherwise, you need to write some sort of parser for whatever data structure that string represents in Perl. Data::Dumper produces Perl code that, when evaled, produces a Perl data structure. Your example is not Perl code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found