go ahead... be a heretic | |
PerlMonks |
Re^4: remove 16 Zerosby Anonymous Monk |
on Oct 21, 2015 at 07:11 UTC ( [id://1145521]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|