Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Can I concatenate variables?

by LanX (Bishop)
on Jan 26, 2013 at 19:58 UTC ( #1015534=note: print w/replies, xml ) Need Help??


in reply to Can I concatenate variables?

> Is it impossible to use variables within variables?

Yes, but for good reasons "symbolic references" are deactivated under strict!

Better use hashes:

my %line; for my $alpha ( "a" .. "b" ) { $line{$alpha} = "somenum"; }

If you still insist to use it, search for "variables as variable names perl".

EDIT: second google hit Why it's stupid to `use a variable as a variable name' from 1998!!! =)

Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015534]
help
Chatterbox?
[corenth]: Where are all the FANN fans?
[Cosmic37]: ok it went quiet because it moved - its actually quite active... https://sourceforg e.net/p/fann/ discussion/
[Cosmic37]: Therefore they are on sourceforge
[Cosmic37]: well... maybe not that much...
[corenth]: I want to climb in and look at how these neural networks work.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-02-20 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (274 votes). Check out past polls.

    Notices?