What you have posted isn't a function :/

but you don't save values to a sub function, functions are not storage places, functions are not variables

you save values into variables, you save values into scalars, arrays and hashes

you pass variables (like references) to functions

http://perldoc.perl.org/perlintro.html#Writing-subroutines

Now you could be asking how to push $pvid as well? But that seems kinda obvious, you just copy/paste what you have and make the var $pvid

So first you need to figure out what you want and then communicate that effectively to us

push @{ $lsmap_slots{$key} }, $svsa, $physloc, $vtd, $lun, $backing, $bdphysloc, $pvid, $ollyollyoxenfree, $status;

In reply to Re^4: remove 16 Zeros by Anonymous Monk
in thread remove 16 Zeros by eghdam

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.