Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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
Replies are listed 'Best First'.
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 studying the Monastery: (6)
As of 2015-08-01 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls