Re: Need help with a simple (I think) Perl script



Uri Guttman wrote:
"FS" == Frank Seitz <devnull4711@xxxxxx> writes:

Uri Guttman wrote:
>>>>>>> "FS" == Frank Seitz <devnull4711@xxxxxx> writes:

open my $fh,'<',$pdffile or die $!;
print <$fh>;
>>
>> use File::Slurp ;
>> print read_file( $pdffile ) ;

There is one disadvantage: File::Slurp is not in the core.

but many use it anyway. the not in core module excuse is weak as is
the "i can't install/use cpan" excuse.

It's not necessarily weak, but just a disadvantage. I think one should
know how things like $/ and $\ work first (a basic working knowledge set
of base things in Perl that is) and then find a module to make life
easier, but you should still know how to do it without a module, and
that's what Frank was doing.

--
szr


.