in reply to Re^3: remove 16 Zeros
in thread remove 16 Zeros

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;

Replies are listed 'Best First'.
Re^5: remove 16 Zeros
by Anonymous Monk on Oct 26, 2015 at 10:52 UTC

    thank u for response. I have a OS related output from

    command, which is getting information from client via a

    Management Server. This Information is about

    VirtualDisks.

    Each Client has more than one path to a disk to avoid SPOF.

    to identify Disks mapped from a Virtual IO Server, the

    command from output shows information about Disks:

    virtual adapter

    Adapter location

    Virtual Taregt Device

    logical Unit

    backing device (if it is a disk)

    and Status (if it is available)

    In this command i am not abot to find pvid. so i have to

    define another output and define the pvid(physical volume identifer.

    this ouput gives me a line like this

    pvid 00c6ae3a2ea7ba7a0000000000000000

    this is a unique ID of Disk

    So what i need is, to get the Physical Volume ID from Disk and print it to the html based Table. Thanks