Re: Need help with a simple (I think) Perl script
- From: "szr" <szrRE@xxxxxxxxxxxxxxx>
- Date: Thu, 29 May 2008 08:59:14 -0700
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
.
- References:
- Need help with a simple (I think) Perl script
- From: *** Sutton
- Re: Need help with a simple (I think) Perl script
- From: Frank Seitz
- Re: Need help with a simple (I think) Perl script
- From: Uri Guttman
- Re: Need help with a simple (I think) Perl script
- From: Frank Seitz
- Re: Need help with a simple (I think) Perl script
- From: Uri Guttman
- Need help with a simple (I think) Perl script
- Prev by Date: Re: Variable remaining undef in one place but not another.
- Next by Date: Re: Remove a tab with backspace?
- Previous by thread: Re: Need help with a simple (I think) Perl script
- Next by thread: Re: Need help with a simple (I think) Perl script
- Index(es):