Thanks, I knew I had used something similar before. Yes, it was the 'my'
thing. It should have occurred to me when I was considering printing out the
symbol table. C'est la vie!
The 'use vars' thing should work fine.
I had used the hash system for other things in the past (mostly dispatching)
but thought that:
$msg_user = 0; # array indices
$msg_email = 1;
$_ =~ s/PERL_DATA_([a-zA-z])/$self->{ $currentID }[$self->{ ${msg_$1} }]/gi;
was a bit overly complex. What I was looking for was:
$msg_user = 0; # array indices
$msg_email = 1;
$_ =~ s/PERL_DATA_([a-zA-z])/$self->{ $currentID }[${msg_$1}]/gi;
I'm using it in a templating mechanism, so the PERL_DATA_* variables will
replaced with database entries in the template.
Thanks all,
Grant M.
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm