Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: filehandle

by amphiplex (Monk)
on Jul 05, 2002 at 06:38 UTC ( [id://179599]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Creating a new file each iteration

Yuo could do something like this:
for (1..27) { open TEXT, ">cell_$_.txt" or die "Can't create cell_$_.txt: $!\n"; printf TEXT "%14.11f %14.11f %14.11f %14.11f %14.11f %14.11f\n" +,$a, $b, $c, $alpha_deg, $beta_deg, $gamma_deg; close TEXT; }

Of course you will have to set the variables inside the loop, but you propably are doing this already.

---- kurt

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://179599]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.