CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
ADDRESS BAR

 



dave_deejay
Deleted

Feb 26, 2001, 12:37 PM

Post #1 of 2 (298 views)
ADDRESS BAR Can't Post

Hey,


Can you help me?
What i want is to grab information from the address

I have a script which grabs information for my other site and but it in to my Database

HERE IT IS:

#!/usr/local/bin/perl


use strict;

use CGI;

use LWP::Simple;

my $url = 'http://www.dcresource.com/reviews/cameraDetail.php3?cam=244';

my $ssaveas = "f:/inter-markets/gallery/db/cgi-bin/pixer/top.txt";

my $results = get ($url);

my $output = '';

my ($thisweek, $lastweek, $title, $topimg, $imgalt);

WHAT I WANT IS TO GRAB http://myserver.com/script.pl?cam=222 <--- i want to grab the 222(or woteva) and add it to my $url = 'http://www.any.com/script?cam=244';<-------and put it here



look forward to your reply

Davidd Sargent




muinatit
Deleted

Feb 26, 2001, 3:45 PM

Post #2 of 2 (292 views)
Re: ADDRESS BAR [In reply to] Can't Post

$variable =~ /cam=(.*)/;
$url .= $1;

Jeffrey "muinatit" Lamoureux
muinatit@hotpop.com

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives