Is there any quick way to use pull out keys that match a specific regex pattern?
eg
I need a fast way to get all the keys that start with 123..
Meaning I should get
only....
Currently I am looking through all the keys and using regex on them. I have over 2k such keys and it is making my program very slow. I am trying to tune it. Any suggestions are welcomed. Thank you.
hello
I have loop , in this loop im picking names , this names I want to be keys in %hash
but I don't know how to set in every loop entertain different key in the %hash (1 Reply)
Say that I want to match any of the following:
abc
def
ghi
The letters will either be "abc", "def", or "ghi", only those three patterns. The numbers will vary, but there will only be numbers between the brackets.
I've only been able to match abc, using the following:
abc.*.
I'm... (1 Reply)
Hi, sorry, two hash related questions in one day .. but this has got me a bit stuck.
I have a mysql database table that kind of looks like this, the table is called "view1" and a snippet of that table (SELECT'ing just rows with serial number 0629AN1200) is below
serial nic_name ... (2 Replies)
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)
I am trying to store this information (info and number) in hash. number is the key and info is value in a hash.i shown my code below.
#!/usr/bin/perl
use warnings;
use strict;
use XML::LibXML::Reader;
my $file;open $file, 'formal.xml');
my $reader =... (0 Replies)
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)
I need to search for lines starting with "Include" and later has string "httpd-ssl.conf"
like the regex should return match for "Include conf/extra/httpd-ssl.conf"
I tried the following:
^]*#;].+Include.*httpd-ssl.conf
Below is my current file:
# Secure (SSL/TLS) connections... (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT DEBIAN
createbddsystem
CREATEBDDSYSTEM(3) BDD FUNCTIONS CREATEBDDSYSTEM(3)NAME
createbddsystem - creates a bdd system.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "bdd101.h"
bddsystem *createbddsystem( ModelVar, ModelOper, MaxVar, MaxNode )
long ModelVar;
long ModelOper;
long MaxVar;
long MaxNode;
PARAMETERS
ModelVar Initial size of the hash table uses for a variable.
ModelOper Size of the hash table uses as a cache.
MaxVar Initial maximum number of variables.
MaxNode Maximum nodes allowed.
DESCRIPTION
createbddsystem creates and initializes a bdd system.
RETURN VALUE
createbddsystem returns a pointer to the bdd system created.
ERRORS
"system model variable xxx error !"
The ModelVar parameter must be a positive value.
"system model oper xxx error !"
The ModelOper parameter must be a positive value.
"variable xxx out of range error !"
The MaxVar parameter must be less than BDD_MAX_VAR.
EXAMPLE
#include "bdd101.h"
bddsystem *BddSystem;
BddSystem = createbddsystem( 100, 1000, 100, 50000 );
...
destroybddsystem( BddSystem );
SEE ALSO bdd(1)resetbddsytem(3), destroybddsytem(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 CREATEBDDSYSTEM(3)