in reply to (jeffa) 4Re: Use of unitialized variable?
in thread Use of unitialized variable?

Uh, now that one fetches it twice! Dare you try again? {grin}

-- Randal L. Schwartz, Perl hacker

  • Comment on RE: RE: RE: RE: Re: Use of unitialized variable?

Replies are listed 'Best First'.
(jeffa) 6Re: Use of unitialized variable?
by jeffa (Bishop) on Aug 29, 2000 at 05:59 UTC
    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 . . .
      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