- # zero indexed panels
- my $panel = ${$refpanel} + 1;
- # What part of the page are we on (1-6)
- my $part = ( int( $panel / 4 ) - ( $panel % 4 == 0 ? 1 : 0 ) );
- # We're only interrested if the panel is between 5-8, 13-16 and 21-24
- my $interested = $part % 2;
- # Work out the real panel
- ${$refpanel} -= int( $part / 2 ) * 4 + ( $interested ? 4 : 0 );
Posted by Anonymous on Wed 24th Oct 18:26 (modification of post by Anonymous view diff)
diff | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.