in reply to RE: RE: RE: RE: Re: Use of unitialized variable?
in thread Use of unitialized variable?

DOH!
that's what I get for taking the perldoc example too literally without thinking.
Last time? *wince*
use strict; use LWP::Simple; print &getHTML('http://www.perlmonks.org'); sub getHTML($) { return getprint(shift); }
minus error checking, of course . . .

Replies are listed 'Best First'.
RE: RE: RE: RE: RE: RE: Re: Use of unitialized variable?
by merlyn (Sage) on Aug 29, 2000 at 15:01 UTC
    Doh! Nope, that one prints it, just like the word says. You want this:
    use strict; use LWP::Simple; print &getHTML('http://www.perlmonks.org'); sub getHTML { return get(shift); }
    which just gets it, just what you want.

    -- Randal L. Schwartz, Perl hacker