[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Will webget work in MacPerl.



Don't use webget.  It is old code, and can be done much more easily with
modules that come with MacPerl.

What do you need to do, fetch a web page?

  #!perl -w
  use LWP::Simple;
  $x = get('http://www.ptf.com/macperl/');
  print $x;

FYI, the problem with webget (particularly, network.pl) is that it calls
out to the Unix shell to run nslookup, ifconfig, and other things that Macs
don't have (on a shell, anyway).  But the above code works out of the box
on current versions of MacPerl.

Hope this helps,

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch