knith has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; @files = <*.tx>; print "@files \n"; foreach $file (@files) { print " \n Working with file: $file \n"; my @lines=(); open(INFO, $file)or die "Could not open file: $!" ; @lines=<INFO>; close(INFO); ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opening text files with CR format
by linuxer (Curate) on Aug 03, 2009 at 12:12 UTC | |
by knith (Initiate) on Aug 03, 2009 at 12:30 UTC | |
|
Re: Opening text files with CR format
by moritz (Cardinal) on Aug 03, 2009 at 12:13 UTC | |
|
Re: Opening text files with CR format
by Bloodnok (Vicar) on Aug 03, 2009 at 12:30 UTC | |
by knith (Initiate) on Aug 03, 2009 at 19:34 UTC |