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

Re: Store data into array by looping?

by LanX (Saint)
on Apr 09, 2019 at 16:56 UTC ( [id://1232357]=note: print w/replies, xml ) Need Help??


in reply to Store data into array by looping?

your code has many issues ...

... a quick fix is to use push because it must already be in a loop

$gate_type = $1; $gate_name = $2; $output_gate = $3; $input_A = $4; $input_B = $5; push @input_A, $input_A; # column 2

be warned that this will collect over all modules in your file.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found