Mike Blezien wrote:
> Hello,

Hello,

> I'm trying to extract an image name from the follow html tag
> 
> $imageURL = "<IMG SRC="picserve.cgi?picserve=/thebest_Small.png" BORDER=0>"
> 
> now I need to extract the 'thebest_Small.png' filename from the img tag,
> but havent't been able to figure out how to do this correctly.
> 
> i tried:
> $imageURL =~ !<IMG SRC="picserve.cgi?picserve=/(.*)" BORDER=0>!;
> $pic      = $1;
> 
> but that produces errors. what I'm doing wrong here ??

You are trying to use the match operator incorrectly.  Only the delimiters //
and ?? can be used without the 'm' in front.

$imageURL =~ m!<IMG SRC="picserve.cgi?picserve=/(.*)" BORDER=0>!;


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to