http://qs321.pair.com?node_id=1144658


in reply to remove 16 Zeros

eghdam,

if you know that the 'pvid' is always 32 characters then:

my $pvid = "00c1be9a467335ce0000000000000000"; my $newpvid = substr( $pvid, 0, 16 ); print "\$newpvid: $newpvid\n";
but also reading some more documentation wouldn't hurt!

Regards...Ed

"Well done is better than well said." - Benjamin Franklin