in reply to include statement in perl?
Update Corrected @ARGV to *ARGV to correct the error noted by Aristotle++ below.
use strict; use warnings; use CGI; .... print do{ local (*ARGV,$/), @ARGV='files/my.html'; <> }; # Hic! ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: include statement in perl? (idiom with caveats)
by Aristotle (Chancellor) on May 31, 2003 at 03:16 UTC | |
by BrowserUk (Patriarch) on May 31, 2003 at 12:26 UTC |