in reply to Difference in returning string "x" vs string "x" in a variable

Does this make it crash?

my @r = ( qq{-u 5},qq{-l 0}, qq{DEF:stat1=$RRD:$table:AVERAGE}, qq{LINE2:stat1#0000FF:$lineName}, ); return \@r;

If it works, then try adding this extra line:

        push @r, qq{LINE2:stat1#0000FF:$lineName};

Replies are listed 'Best First'.
Re^2: Difference in returning string "x" vs string "x" in a variable
by Matt G (Initiate) on Nov 04, 2004 at 19:29 UTC
    fglock, your solution worked perfectly.
    I knew there must be a way to mimick that return statement, just couldn't figure it out.
    Thank you very much, you've saved me alot of time and effort.