Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Generating an output file

by bv (Friar)
on Sep 22, 2009 at 15:23 UTC ( [id://796732]=note: print w/replies, xml ) Need Help??


in reply to Generating an output file

You could store the rest of the line (each sub-entry) in a separate array, then loop over that. Here's one I put together quickly:

while(<INPUT>){ my (@prefix,@rest); chomp; (@prefix[0..2],@rest) = split /,/; for (@rest) { local $, = ','; local $\ = "\n"; print @prefix,$_; } }
print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-24 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found