Asking for input or opening a webpage
- Hi all,
I am trying to find a way to either ask the user for input (a zip code
specifically) or to open a webpage from a perl script. Most of the info
I have found just prints the html code out in the browser window i.e. it
doesn't create the page. Any ideas?
>>>>> "Portman" == Portman <mrport@...> writes:Portman> I am trying to find a way to either ask the user for input (a
Portman> zip code specifically)
I find it hard to believe that you haven't seen things like:
print "Zip code please? ";
chomp (my $zip = <STDIN>);
That's the beginning of almost every tutorial on Perl. :)
Portman> or to open a webpage from a perl script.
See LWP::Simple, in the CPAN.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!