Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: How can I seralize a file for use with XML?

by InfiniteSilence (Curate)
on Jan 31, 2012 at 23:22 UTC ( #951093=note: print w/replies, xml ) Need Help??

in reply to How can I seralize a file for use with XML?

You could also try:
use MIME::Base64; ... for my $file (@files) { next if $file eq "." || $file eq ".."; $DIR{$file} = encode_base64(read_file "$directory/$file"); } ...

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: How can I seralize a file for use with XML?
by Lamont85 (Novice) on Feb 02, 2012 at 18:47 UTC
    This approach works perfectly! Thanks for the help!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951093]
[LanX]: well even my random fingers have memory ...
[Eily]: you could have tried randomly swapping your fingers
[Eily]: enigma style
[choroba]: so it was you who typed the whole phrases?
[Yaerox]: I feel like i'm not seeing the forest for the trees. Can someone give me a hint how to research converting all kinds of files into ansi? If origin file is utf8 convert to ansi, is origin file is ansi then skip file.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2017-03-28 13:07 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (331 votes). Check out past polls.