I have a program that contains a subroutine that populates variables from 
name-value pairs passed to it from an HTML form.

I want to improve my scripts by defining my variables using the 'my' 
function and perhaps 'use strict;'.  I don't think that I can use the full 
function of strict because my code has to use symbolic references in order 
to make the dynamic variable names.  For example:

$$VARNAME = $PAIR_DATA;

AFAIK, there's no other way around this that will work with strict.  So, 
I'll probably be limited to:

use strict "vars";
#use strict "refs";
use strict "subs";

Having to define all variables using 'my' poses a problem when the 
variables are created within the subroutine.  Once I try to reference them 
outside the subroutine I will get a warning saying that I have not defined 
the variable.  Obviously doing a 'my' when the variable is created in the 
subroutine would not be of any use (only available inside the sub).  Is 
there perhaps a way to define the dynamic variable as being a global value?

Any help would be gratefully appreciated.

TIA

Roland


-- 
The information contained within this e-mail sent by Cradley Print Ltd. is
confidential and is intended for the named recipient only. If you are not
the intended recipient please notify us by telephone immediately on 01384
414100 (UK)or +(44)1384 414100 (International) or return it to us by e-mail
quoting the name of the sender and the addressee. Please then delete it from
your system.

Encryption and Viruses
==================
Please note that this e-mail and any attachments have not been encrypted.
They may therefore be liable to be compromised. Please also note that it is
your responsibility to scan this e-mail and any attachments for viruses.
Viruses and compromises of security are inherent risks in relation to
e-mail.

We do not, to the extent permitted by law, accept any liability (whether in
contract, negligence or otherwise) for any virus infection and/or external
compromise of security and/or confidentiality in relation to transmissions
sent by e-mail.

Contracts
========
Please note, that contracts may NOT be concluded on behalf of Cradley Print 
Ltd by e-mail, but contracts on behalf of our clients may be concluded by 
e-mail.
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to