On 2010-09-25 13:07, John W. Krahn wrote:
Dr.Ruud wrote:
On 2010-09-25 01:57, Vaishnavi Saba wrote:
My query: In the code shown below, How does *grep* compare a scalar( *
$seen{$_}* ) with an array of hash references ( *...@_* ).
=
@common = inter( \%foo, \%bar, \%joe );
sub inter
On 2010-09-25 01:57, Vaishnavi Saba wrote:
My query: In the code shown below, How does *grep* compare a scalar( *
$seen{$_}* ) with an array of hash references ( *...@_* ).
=
@common = inter( \%foo, \%bar, \%joe );
sub inter {
my %seen;
for my $href ( @_ ) {
while
Dr.Ruud wrote:
On 2010-09-25 01:57, Vaishnavi Saba wrote:
My query: In the code shown below, How does *grep* compare a scalar( *
$seen{$_}* ) with an array of hash references ( *...@_* ).
=
@common = inter( \%foo, \%bar, \%joe );
sub inter {
my %seen;
for my $href ( @_ ) {
while (my
Hi,
My query: In the code shown below, How does *grep* compare a scalar( *
$seen{$_}* ) with an array of hash references ( *...@_* ).
=
@common = inter( \%foo, \%bar, \%joe );
sub inter {
my %seen;
for my $href (@_) {
while (my $k = each %$href ) {
$seen{$k
Vaishnavi Saba wrote:
Hi,
Hello,
My query: In the code shown below, How does *grep* compare a scalar( *
$seen{$_}* ) with an array of hash references ( *...@_* ).
An array in scalar context returns the number of elements in the array
and @_ (which is an alias to @common) contains 3
On 09/25/2010 01:57 AM, Vaishnavi Saba wrote:
@common = inter( \%foo, \%bar, \%joe );
sub inter {
my %seen;
for my $href (@_) {
while (my $k = each %$href ) {
$seen{$k}++;
}
}
return grep { $seen{$_} == @_ } keys %seen;
}
Usually not a good
Hi all,
Please note the Perl script that am trying to write at end the of this email,
after the dashes.
I have two files that contains thousands and millions of records of two database
tables that are supposed to be replicated and same similar amount of records
but, unfortunately, they're not.
On 08/23/2006 05:09 PM, [EMAIL PROTECTED] wrote:
[...]
Am guessing that I have to take out the array bit and just modify this line
here:
@match=grep{/$lookfor/[EMAIL PROTECTED];
But I am not sure how or what I should change it to. How do I tell grep to
search from a file instead of from an
benbart schreef:
[I see no direct relation of the Subject to the question.]
I have two files that contains thousands and millions of records of
two database tables that are supposed to be replicated and same
similar amount of records but, unfortunately, they're not.
If the files are sorted,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of zentara
Sent: Saturday, July 02, 2005 8:35 AM
To: beginners-cgi@perl.org
Subject: Re: How to grep out contnts of a column
On Sat, 02 Jul 2005 11:29:08 -0400, zentara [EMAIL PROTECTED]
wrote:
Sorry, I had
--- Nazary, David [EMAIL PROTECTED] wrote:
Can't locate Filter/Util/Call.pm in @INC (@INC contains: C:/Perl/lib
C:/Perl/site/lib .) at C:/Perl/lib/Inline/Files.pm line 6.
BEGIN failed--compilation aborted at C:/Perl/lib/Inline/Files.pm line
6.
snip
I guess I am missing a Filter module, but
Hi everyone;
One of our tools provides following output:
cut
LICENSES:
Max-Users Expires Password [status]
62 none 3abbc829.67e2685f.02 [Valid]
Maximum active users allowed: 62
Current active users: 17
ACTIVE users:
User Priority
Hi All,
I have a output as follows:
I like to grep first two lines(it should be in loop) ==Line 1
==Line 2
Oplog IDs for row ERL_ComEPR_Project_Management ( eh20417c):
==Line 1
oid:9534a99c.142611d4.a2d5.00:90:27:cc:b7:c8=5467
13 matches
Mail list logo