http://62.5.7.15/code.txt contains the full code but basically :

$groups{'de'}{'kista_103'} = 'spray.net_health_check.txt';
$groups{'de'}{'kista_118'} = 'spray.net_search_?form=norm';
$groups{'dpapache'}{'kista_136'} = 'dpapache02.spray.net.txt';
$groups{'dpapache'}{'kista_137'} = 'dpapache01.spray.net.txt';

# Static vars

$graphdir='/home/mark/graphs';
$rrddir='/home/mark/rrd';


foreach $group ( sort keys %groups ) {
for $ds ( sort keys %{$groups{$group}} ) {
foreach $interval ("-2h","-2d","-2w"){
@rrdgraph1=();
@rrdgraph2=@rrdgraph1;
push @rrdgraph2,$pngtot;
@rrdgraph0=();
push @rrdgraph0,$def;
push @rrdgraph0,$line;
push @rrdgraph2,@rrdgraph0;
@rrdgraph3=@rrdgraph1;
$png= join("",$graphdir,"/",$ds,$interval,".png");
push @rrdgraph3,$png,@rrdgraph0;
$blank = shift @rrdgraph3;
}
}

exit;
<CODE> I expected that @rrdgraph2 would be populated with all of the $def and $line values for every value within the ds loop but it ends up the same as rrdgraph3

In reply to why doesn't my array get extended? by bhu73

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.