B
bpatton
I'm trying to get something on the order of
$VAR1 = {
'cell' => {
'1A' => {
'pass' => {
'ACTIVE' => {
[ 0 , 0 , 0 , 240 , 240 , 240 , ... ] ,
[ 1 , 2 , 3 , 4 , 5 , 6 , ... ] ,
},
},
'fail'=> {
'ACTIVE'=>{
....
This shoudl be very easy to do, but I've been working on my AC and had
a beer on an empty
stomach.
Here's some sample sode that soes not work.
#!/usr/local/bin/perl
use strict;
use warnings;
use Data:umper; $Data:umper::Indent = 1;
my $data;
my $x = 0;
my $y = 0;
my $dis = 240;
my $rule = '1A';
my $layer = 'ACTIVE';
$data->{cell}->{$rule}->{pass}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
$x = $dis * 3;
$y = $dis * 3;
$data->{cell}->{$rule}->{pass}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
$dis = int($dis / 2);
$data->{cell}->{$rule}->{fail}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
$x = $dis * 3;
$y = $dis * 3;
$data->{cell}->{$rule}->{fail}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
print Dumper($data);
$VAR1 = {
'cell' => {
'1A' => {
'pass' => {
'ACTIVE' => {
[ 0 , 0 , 0 , 240 , 240 , 240 , ... ] ,
[ 1 , 2 , 3 , 4 , 5 , 6 , ... ] ,
},
},
'fail'=> {
'ACTIVE'=>{
....
This shoudl be very easy to do, but I've been working on my AC and had
a beer on an empty
stomach.
Here's some sample sode that soes not work.
#!/usr/local/bin/perl
use strict;
use warnings;
use Data:umper; $Data:umper::Indent = 1;
my $data;
my $x = 0;
my $y = 0;
my $dis = 240;
my $rule = '1A';
my $layer = 'ACTIVE';
$data->{cell}->{$rule}->{pass}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
$x = $dis * 3;
$y = $dis * 3;
$data->{cell}->{$rule}->{pass}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
$dis = int($dis / 2);
$data->{cell}->{$rule}->{fail}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
$x = $dis * 3;
$y = $dis * 3;
$data->{cell}->{$rule}->{fail}->{$layer} =
( $x,$y , $x,$y+$dis , $dis,$dis , $dis,$y , $x,$y);
print Dumper($data);