A piece of script from Perl-cookbook I do not understand, and post here for explanation.
The purpose is to find the element in either array (union), and in both array (intersection). Thank you in advance.
I have a little problem. To keep a configuration simple, I've exceeded my perl knowledge. :-) I've worked with multi-dimentional arrays before, but this one has me beat:
@info = (
{
'defval' => 'abc'
'stats' = (
{ 'name' => 'a', },
{ 'name' =>... (1 Reply)
Hi,i have a code fragment below.
%tag = (); #line 1
$tag{'info'} = $datastring; #line 2
$resp = $ua->request( #$ua is a user agent
POST 'http://10.2.3.0' ,
Content_Type => application/x-www-form-urlencoded
Content => #line 3 I am not sure of what the code... (3 Replies)
suppose my @{$data1{$callid}}; cotains
one two three
three five six
one two three
of random patterns but each item is separated by white space or tab,
Below code extract and get rid of the whitespace perfectly so that it shows now like this
onetwothree
threefivesix... (2 Replies)
Hi all experts,
May I know how to read a csv file and read the content in a hash in PERL?
Currently, I hard-coded and defined it in my code. I wanna know how to make up the %mymap hash thru reading the cfg.txt
====
csv file(cfg.txt):
888,444
999,333
===
#!/usr/bin/perl
my... (1 Reply)
Hi ,
I have an input.txt file that i read
node: id= c1, class=nb, cx=100, cy=100, r=10
node: id=c2, class=b, cx=150, cy=130, r=10
node: id=c3, class=nb, cx=50, cy=80, r=10
node: id=c4, class=nb, cx=120, cy=200, r=10
i split over , and = to create a global array and then passed it to a... (6 Replies)
Hi guys
I have this part of a perl script that returns and odd error
if ($args{software}) {
print " @DISTFILE_GROUPS $output->{distfile_groups}->{ get_rdist_groups}\n";
and the error is
Can't coerce array into hash at
i've never seed this error before, any ideas
thanks... (0 Replies)
How do I get the unique hashes from an array of hashes?
@ar1 = ( {a=>1,b=>2}, {c=>3,d=>4},{a=>1,b=>2});I need :
@ar2 = ( {a=>1,b=>2}, {c=>3,d=>4});Thanks. (2 Replies)
Sorry for the “word salad” subject, but I wanted to cast a wide net for help.
I've created an IP (Internet Protocol) server which serves HTTP, SMTP, and FTP requests.
As you probably know, they all require creating a socket, listening on it, accepting connections, and then having a short... (3 Replies)
Discussion started by: John S.
3 Replies
LEARN ABOUT DEBIAN
hwloc_obj_attr_u_hwloc_bridge_attr_s
hwloc_obj_attr_u::hwloc_bridge_attr_s(3) Hardware Locality (hwloc) hwloc_obj_attr_u::hwloc_bridge_attr_s(3)NAME
hwloc_obj_attr_u::hwloc_bridge_attr_s -
SYNOPSIS
#include <hwloc.h>
Data Fields
union {
struct hwloc_pcidev_attr_s pci
} upstream
hwloc_obj_bridge_type_t upstream_type
union {
struct {
unsigned short domain
unsigned char secondary_bus
unsigned char subordinate_bus
} pci
} downstream
hwloc_obj_bridge_type_t downstream_type
unsigned depth
Detailed Description
Bridge specific Object Attribues.
Field Documentation
unsigned hwloc_obj_attr_u::hwloc_bridge_attr_s::depth
unsigned short hwloc_obj_attr_u::hwloc_bridge_attr_s::domain
union { ... } hwloc_obj_attr_u::hwloc_bridge_attr_s::downstream
hwloc_obj_bridge_type_t hwloc_obj_attr_u::hwloc_bridge_attr_s::downstream_type
struct hwloc_pcidev_attr_s hwloc_obj_attr_u::hwloc_bridge_attr_s::pci
struct { ... } hwloc_obj_attr_u::hwloc_bridge_attr_s::pci
unsigned char hwloc_obj_attr_u::hwloc_bridge_attr_s::secondary_bus
unsigned char hwloc_obj_attr_u::hwloc_bridge_attr_s::subordinate_bus
union { ... } hwloc_obj_attr_u::hwloc_bridge_attr_s::upstream
hwloc_obj_bridge_type_t hwloc_obj_attr_u::hwloc_bridge_attr_s::upstream_type
Author
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 1.4.1 Mon Feb 27 2012 hwloc_obj_attr_u::hwloc_bridge_attr_s(3)