How probably not to hand over a variable from one perl script to another

  • Thread starter Markus Hänchen
  • Start date
I

Ilya Zakharevich

[A complimentary Cc of this posting was sent to
Ted Zlatanov

[[Discussion of using Data::Dumper for serialization as being a lunacy
omitted due to a complete agreement. ;-]]
Data::Dumper may also save data you don't want saved, e.g. a password
in a data structure you didn't know you were dumping.

Pass data with a data language. I suggested YAML or XML - there are
many others.

Ted, I think the last objection is misplaced. Data language wouldn't
help if you have some data you don't want saved...

And, of course, now there are builtin *quick* serialization methods.

perldoc Storable

Hope this helps,
Ilya
 
T

Ted Zlatanov

Ted, I think the last objection is misplaced. Data language wouldn't
help if you have some data you don't want saved...

True. I think the advice should be, "think before you save data, to
make sure you're not saving things you shouldn't" - regardless of the
data saving method or language. Thanks for catching that.
And, of course, now there are builtin *quick* serialization methods.

perldoc Storable

I remember how, at a previous job, some genius decided it would be a
good idea to freeze() complex structures into a database column. I
didn't have to deal with it, fortunately, but I can imagine the fun.

Anyhow, definitely for speed I would go with Storable, but a neutral
data language is generally better otherwise.

Ted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top