Thread
:
Iterating through a file
View Single Post
08-20-2005, 02:50 PM
#
13
(
permalink
)
idx
Senior Grasshopper
Join Date: Jun 2003
Location: FL
Posts: 317
Quote:
Originally Posted by
fp_unit
Code:
#!/usr/bin/perl open(FILE, "> yourfile.txt"); while(line = <FILE>) { # do something with line }
? No, that would write to the file.
-r
idx
View Public Profile
Visit idx's homepage!
Find More Posts by idx