I think you're missing the parenthesis around .*

-Andres

On Fri, 2005-02-25 at 15:11 -0600, Alex Brelsfoard wrote:
> Hi all,
>     I have a quick (hopefully) question on how to do a simple switch
> statement.  Let me show you what I am trying to do:
> I would like to switch '[link http://www.domain.com/page.html]' to '<a
> href="http://www.domain.com/page.html";>.
> Here's what I was trying to do:
> $message =~ s/\[link .*?\]/<a href=\"$1\">/gs;
> 
> But I don't think that $1 is being populated until the line is entirely
> processed.  Can anyone think of a way to do this in one line?  Or do I
> have to split this up into two lines?
> 
> Thanks.
> 
> --Alex
>  
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm
> 
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to