in reply to Help on getting data from LWP::UserAgent

When running your script against http://www.perlmonks.org it works as expected.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: Help on getting data from LWP::UserAgent

Replies are listed 'Best First'.
Re^2: Help on getting data from LWP::UserAgent
by Anonymous Monk on Jun 16, 2008 at 05:26 UTC
    Hi
    Thanks for you time. I tried the same code against against http://www.perlmonks.org and fac +ing the same error as no such file or directory.
      What version of Perl are you using?
      >c:\progs\perl561\bin\perl -e"open(my $fh, '<', \$buf) or die $!" No such file or directory at -e line 1. >c:\progs\perl580\bin\perl -e"open(my $fh, '<', \$buf) or die $!"

      Scalars as files is a 5.8 addition. In previous version, it would try to open a file called something like "SCALAR(0x225300)".

      PS - Please avoid placing your entire post in code tags. Start paragraphs with <p> instead.