Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Adding scalars but with a twist..

by Joost (Canon)
on Feb 13, 2005 at 11:57 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-05-28 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?