Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Adding scalars but with a twist..

by Joost (Canon)
on Feb 13, 2005 at 11:57 UTC ( [id://430566]=note: print w/replies, xml ) Need Help??


in reply to Adding scalars but with a twist..

I.e. can you break the name of the scalar up and insert a number into it $Sel[1......80]Ttl so i can then use that in my additions.. ?
Yes, but the best way to do almost that it is to use an array:
for my $number (1 .. 80) { $selTtl[$number] = $value; }
Really, the advantages of not having to type 2 more characters ([]) are not worth it, considering the potential problems.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found