mavericknik has asked for the wisdom of the Perl Monks concerning the following question:
The output I see on the screen is:$netdrivers = ($pin->net)->dump_drivers;
What I am trying to so is this :Net:in2 Port: in2 in Pin: U1.IN2 in Pin: U2.IN2 in
What I want it to do is save$netdrivers = ($pin->net)->dump_drivers; my @netdrivers_split = split(/\n/,$netdrivers); foreach my $val (@netdrivers_split) { #some code }
Then split it into an array using the newline delimiter so I can use the individual values. But when I doNet:in2 Port: in2 in Pin: U1.IN2 in Pin: U2.IN2 in
I get:$netdrivers = ($pin->net)->dump_drivers; my @netdrivers_split = split(/\n/,$netdrivers); print @netdrivers_split;
Why is the value in "@netdrivers_split" "0 but true"? Is this the right way to do it?Net:in2 Port: in2 in Pin: U1.IN2 in Pin: U2.IN2 in 0 but true
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with storing values (Verilog::Netlist::Net)
by toolic (Bishop) on Apr 16, 2015 at 19:13 UTC | |
by mavericknik (Sexton) on Apr 16, 2015 at 19:58 UTC | |
by toolic (Bishop) on Apr 16, 2015 at 20:21 UTC | |
|
Re: Problem with storing values
by FreeBeerReekingMonk (Deacon) on Apr 16, 2015 at 21:52 UTC |