@fileinput_ap = <AP_MENU>; for ($i = 0; $i <= $#fileinput_ap; $i++) { print "$fileinput_ap[$i]" +}
This can be done more perlish:
or shorter:while( <AP_MENU> ) { print; }
print while <AP_MENU>;
If you just want to print an entire file, you can use print in array context
-- Frankprint <AP_MENU>;
In reply to Re: Printing From a File Handle
by haoess
in thread Printing From a File Handle
by bkiahg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |