bkiahg has asked for the wisdom of the Perl Monks concerning the following question:
Is there a more efficient way than reading everything into an array?open (AP_MENU, "/web/aps/ap_menu.dat") or die "Cannot open: $!"; @fileinput_ap = <AP_MENU>; for ($i = 0; $i <= $#fileinput_ap; $i++) { print "$fileinput_ap[$i]" +} close (AP_MENU) or die "Cannot close: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing From a File Handle
by haoess (Curate) on Apr 28, 2004 at 20:22 UTC | |
by bkiahg (Pilgrim) on Apr 28, 2004 at 20:27 UTC | |
by haoess (Curate) on Apr 28, 2004 at 20:36 UTC | |
by bkiahg (Pilgrim) on Apr 28, 2004 at 20:43 UTC | |
by tkil (Monk) on Apr 29, 2004 at 02:04 UTC | |
by bkiahg (Pilgrim) on Apr 29, 2004 at 15:04 UTC | |
by Elijah (Hermit) on Apr 28, 2004 at 21:14 UTC | |
by bkiahg (Pilgrim) on Apr 28, 2004 at 20:39 UTC | |
|
Re: Printing From a File Handle
by b10m (Vicar) on Apr 28, 2004 at 20:14 UTC | |
by Roy Johnson (Monsignor) on Apr 28, 2004 at 20:19 UTC | |
|
Re: Printing From a File Handle
by Anomynous Monk (Scribe) on Apr 28, 2004 at 22:52 UTC |