I have a script with dynamic hash of hashes , and I want to print the entire hash (with all other hashes).
Itried to do it recursively by checking if the current key is a hash and if yes call the current function again with refference to the sub hash.
Most of the printing seems to be OK but in... (1 Reply)
Can Someone explain me why even using Tie::IxHash I can not get the output data in the same order that it was inserted? See code below.
#!/usr/bin/perl
use warnings;
use Tie::IxHash;
use strict;
tie (my %programs, "Tie::IxHash");
while (my $line = <DATA>) {
chomp $line;
my(... (1 Reply)
Hi,
In Perl, is it possible to use a range of numbers with '..' as a key in a hash?
Something in like:
%hash = (
'768..1536' => '1G',
'1537..2560' => '2G'
);
That is, the range operation is evaluated, and all members of the range are... (3 Replies)
hi all,
i have a small problem regarding sorting the keys in a hash.
my %hash;
for($i=0;$i<19;$i++)
{
$hash{$i}=$i;
}
foreach $c (sort keys %hash)
{
print "\n $hash{$c}";
} (1 Reply)
Hi,
I have a datahash with 'n' number of values in perl script. I am writing a xml file from the datahash. I am getting output with sorting(Field sorting). My question is that i don't want any default sorting.whatever i am inserting into datahash it should give same xml file.
Any help?
... (0 Replies)
Hi All
I've got a perl script that I'm having a problem with when it prints the output of a hash. Some background. I'm trying to merge two file with a similar structure but with different data. Here is a portion of the script I'm using.
while (<INPUT>) {
my... (0 Replies)
Hi ,
i have the below code its working fine when i execute in unix , but its not working in windows could you pls explain me where i am going wrong.
This is the program
$data = { '1' => 'one' ,
'2' => 'two' ,
3 => 'three'
};
print "hello : $data->{'1'}... (2 Replies)
I want to sort values of a hash in ascending order.
my %records;
for my $value (sort values %records){print $value,"\n";}
When I use the above code I get values in this order: 1,10,11,2,3,4,5,6,7,8,9. But, I need values in my output in this order: 1,2,3,4,5,6,7,8,9,10,11.
Can Someone... (1 Reply)
Hi,
I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .
my %result (
$abc => {
'data_count' => '10',
'ID' => 'ABC122',
}
$def => {
'data_count' => '20',
'ID' => 'defASe',
... (1 Reply)
My issue is that the perl script (as I have done it so far) created empty branches when I try to check some branches on existence.
I am using multydimentional hashes: found it as the best way for information that I need to handle. Saing multidimentional I means hash of hashes ... So, I have
... (2 Replies)
Discussion started by: alex_5161
2 Replies
LEARN ABOUT SUNOS
update-connector-security-map
asadmin-update-connector-security-map(1AS) User Commands asadmin-update-connector-security-map(1AS)NAME
asadmin-update-connector-security-map, update-connector-security-map - updates the security map for the named connector connection pool
SYNOPSIS
update-connector-security-map --user admin_user [--password admin_password][--host localhost] [--port 4848][--secure|-s] [--passwordfile
filename] [--terse=false] [--echo=false] [--interactive=true]
--poolname connector_connection_pool_name [--addprincipals principal-name[, principal-name]*]| [--addusergroups user-group[, user-group]*]
[--removeprincipals principal-name[, principal-name]* ] [--removeusergroups user-group[, user-group]*] [--mappedusername user_name]
[[--mappedpassword password]] mapname
Modifies a security map for the named connector connection pool. You must have first created a connector connection pool using the create-
connector-connection-pool command.
This command is supported in remote mode only.
OPTIONS --user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
--poolname connector connection pool name for which the security map that is to be updated or created belongs to.
--addprincipals a comma separated list of backend EIS principals to be added.
--addusergroups a comma separated list of the enterprise information system usergroups to be added.
--removeprincipals a comma separated list of the enterprise information system principals to be removed.
--removeusergroups a comma separated list of the enterprise information system usergroups to be removed.
--mappedusername the enterprise information system username.
--mappedpassword the enterprise information system password.
OPERANDS
mapname name of the security map to be updated.
Example 1: Using update-connector-security-map
It is assumed that the connector pool has already been created using the create-connector-pool command.
asadmin> update-connector-security-map --user admin --password adminadmin
--poolname connector-pool1 --addprincipals principal1, principal2,
--addusergroups usergroup1, usergroup2 --removeprincipals principal3, principal4
--removeusergroups usergroup3, usergroup4 securityMap1
Command update-connector-security-map executed successfully
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-connector-security-map(1AS), asadmin-delete-connector-security-map(1), asadmin-list-connector-security-maps(1AS)J2EE 1.4 SDK March 2004 asadmin-update-connector-security-map(1AS)