Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: filehandle

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-24 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found