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

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.

Replies are listed 'Best First'.
Re^3: Help on getting data from LWP::UserAgent
by ikegami (Patriarch) on Jun 16, 2008 at 06:55 UTC
    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.