Notes 0007
Input/Output
In Perl, the way input or output happens is largely determined by the way we open the input or output file handle. Thus, I refer you do the documentation for open function, and recommend that you read the perlopentut tutorial that is mentioned in the documentation.
You can read everything there is to know about open and sysopen here: http://perldoc.perl.org/perlopentut.html
Oh, a cooler way to load files:
sub loadFile {
my ($name) = @_;
open my $in,$name or die qq{$!: "$name"};
local $/=undef;
return <$in>;
}
|