Reinhard Glauber wrote:
> $answer = system("wget http://www.bla.de/bla/blaDetail.aspx?ID=$i");
That's not Perl - that's a shell command with a little bit of Perl
wrapped around it (and it's not even the right sort of Perl).
Real Perl programmers use real Perl functions and modules, and they
resort to shell commands only when absolutely necessary (which is
generally rare - I haven't used a raw shell command from Perl in three
years). The most common module for this purpose is LWP. But I always
recommend the use of the super-duper-module IO::All
(
http://tinyurl.com/982wo), especially to novice programmers, because
it provides a nice, EASY proxy to LWP (and a bunch of other functions
and modules). How easy, you ask? Well, I'm REALLY GLAD you asked:
#!/usr/bin/perl
use warnings; use strict;
use IO::All;
my $content < io('http://example.org');
print $content;
__END__
IT DON'T GET NO MORE EASIER THAN THAT RIGHT THERE!
--
http://DavidFilmer.com