Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 ( [id://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";

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://225207]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-18 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found