Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Transpose the entries

by boo_radley (Parson)
on Jan 08, 2004 at 15:14 UTC ( #319819=note: print w/replies, xml ) Need Help??


in reply to Transpose the entries

First off, I'd set the record separator to that big line of dashes, then push each 'line' into an array. I'd do this in a block, so that the record separator would automatically return to it's regular value of "\n" after the block. Then I'd go through the array I created in step one, and create a hash by splitting on ": " and newlines, taking care to make sure that a 'cuid' key exists. I'd push this hash into a different array. At that point, I'd be ready to loop through this second array to create output in whatever format I'd need.
update What abigail-II says.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319819]
help
Chatterbox?
[dazz]: Also, I want to use Image::Magick to annotate and composite (not in a sub). How do I take a Image::Grab object and apply Image::Magick write methods to it??
[dazz]: At present, I am saving the Image::Grab image to disk, then creating a new Image::Magick object that reads the disk file.
[dazz]: .
[choroba]: Discipulus Sounds interesting. Any pictures of the puppets or paintings?

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



    Results (317 votes). Check out past polls.