in reply to Printing From a File Handle

This is a way:

open AP_MENU, "</web/aps/ap_menu.dat" or die "Cannot open: $!"; print <AP_MENU>; close AP_MENU or die "Cannot close: $!";
--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re: Re: Printing From a File Handle
by Roy Johnson (Monsignor) on Apr 28, 2004 at 20:19 UTC
    or print while <AP_MENU>; to avoid whole-file slurp-and-dump.

    The PerlMonk tr/// Advocate