Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: remove 16 Zeros

by Anonymous Monk
on Oct 15, 2015 at 20:32 UTC ( [id://1145033]=note: print w/replies, xml ) Need Help??


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

So cool!

Replies are listed 'Best First'.
Re^3: remove 16 Zeros
by Anonymous Monk on Oct 21, 2015 at 06:58 UTC

    Folk, i need help again :-(

    how do i save this value (pvid) to a sub function in perl? there are keys defined in the sub function and they are pushed and later prints in html:

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

    how do i push pvid in this sub function?>

    i know, i have to read but Perl is very heavy for me at the Moment.

    Kind Regards

      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;

        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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found