Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: dynamically initializing variables with perl

by busunsl (Vicar)
on Jan 08, 2003 at 07:03 UTC ( #225207=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: dynamically initializing variables with perl
in thread dynamically initializing variables with perl

Try the following map (untested):

my @C = map { param("C$_") || 'OFF' } 0..$msgcount - 1;
It should give something like:
$C[0] = "ON"; $C[1] = "OFF"; $C[2] = "ON";


Comment on Re: Re: Re: dynamically initializing variables with perl
Select or Download Code
Re: Re: Re: Re: dynamically initializing variables with perl
by db2admin (Acolyte) on Jan 10, 2003 at 04:34 UTC
    Wow! that works perfectly! Thank you very much.

    Best Regards,

    David K.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://225207]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-04-18 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls