in reply to How to include files in perl?

Hi,
Try this,
undef $/; open (FILE,"/path/to/header.html"); my $file = <FILE>; close(FILE); print "$file";

Or Just Try for this links:
  • PHP include Modules
  • Include Virtual Files

  • Regards,
    Perlsen

    Replies are listed 'Best First'.
    Re^2: How to include files in perl?
    by wee (Scribe) on Dec 04, 2008 at 17:55 UTC
      Using open without die is like making a peanut butter and jelly sandwich without peanut butter. You might not get what you expect.