Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Accessing Internet

Reply
Thread Tools

Perl Accessing Internet

 
 
downtoearth
Guest
Posts: n/a
 
      02-16-2004
Hi guys,

I write IRC scripts from within mIRC. I decided I wanted to expand the
capabilities by learning Perl, so now I have a compiler and such but
am trying to figure out what's going wrong. I try to access files on
the internet, but it does not work. It works fine when I try files on
my computer, but as soon as I attempt a URL it crashes. Here's the
section:

$data_file="http://www.angelfire.com/magic/sheepmagic/Decks/Burn.DEC.txt";
open(DAT, $data_file) || die("Could not open file!");

Please help!

Thanks,
downtoearth
 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      02-16-2004
downtoearth wrote:
> I try to access files on the internet, but it does not work. It
> works fine when I try files on my computer, but as soon as I
> attempt a URL it crashes. Here's the section:
>
> $data_file="http://www.angelfire.com/magic/sheepmagic/Decks/Burn.DEC.txt";
> open(DAT, $data_file) || die("Could not open file!");


http://search.cpan.org/perldoc?LWP::Simple

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Internet Explorer 8: C:\Program Files\Internet Explorer\iexplore.exe vs C:\Program Files (x86)\Internet Explorer\iexplore.exe Nathan Sokalski Windows 64bit 16 02-22-2010 08:31 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments