On 10/10/06, Kathryn Bushley <[EMAIL PROTECTED]> wrote:

s/(.*).$code.(.*)/$1.$id_global{$code}.$2/;

I haven't looked at all of your program in detail, so there may be
other fixes needed; but this substitution jumped out at me. It doesn't
look as if you really need $1 and $2; and it looks as if you mean to
have literal dots in the string. Do you perhaps want something like
this?

   s/\.$code\./.$id_global{$code}./g;

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
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