in reply to dynamically initializing variables with perl

>Is it possible to initialize variables using perl?

Yes.

>I have tried the following but receive a syntax error

What do you think $C$checkcnt should evaluate to?

That's your syntaxt error.

You should read Why it's stupid to `use a variable as a variable name' Part 1 2 3.

You should also read `perldoc perldata', and `perldoc perlsyn', as it is clear you need to.


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: dynamically initializing variables with perl