freelanceprogrammers.org Forum Index » Perl

Re: Digest Number 212


View user's profile Post To page top
maneesh1978 Posted: Tue Feb 03, 2004 10:00 am


Joined: 02 Jun 2004

Posts: 2
Re: Digest Number 212
HI

here`s a very simple solution

my @arr1 = 0 .. 10;
my @arr2 = 0 .. 10;

my $comp = Array::Compare->new;

if ($comp->compare(@arr1, @arr2) {
print "Arrays are the same
";
} else {
print "Arrays are different
";
}

Bye
Maneesh


--- perl_official@yahoogroups.com wrote:
> ------------------------ Yahoo! Groups Sponsor
>
> There is 1 message in this issue.
>
> Topics in this digest:
>
> 1. Comparing Two Array
> From: Charles Pereira
> <charlesti@...>
>
>
>
________________________________________________________________________
>
________________________________________________________________________
>
> Message: 1
> Date: Sun, 1 Feb 2004 13:09:52 -0300 (ART)
> From: Charles Pereira <charlesti@...>
> Subject: Comparing Two Array
>
> Hi all,
> Anyone help-me ?
>
> I need to do comparing two array.
> So, I have two array with many difference names and
> I would like to compare two and write the difference
> names in the first array.
>
> Unfortunate I dont know how to do it ?
> Please, Who can help-me ?
> Tks for all.
>
>
>
> ---------------------------------
> Yahoo! GeoCities: 15MB de espaço grátis para criar
> seu web site!
>
> [Non-text portions of this message have been
> removed]
>
>
>
>
>
________________________________________________________________________
>
________________________________________________________________________
>
>
>
>
>
------------------------------------------------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/perl_official/
>
> To unsubscribe from this group, send an email to:
> perl_official-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
------------------------------------------------------------------------
>
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
Reply with quote
Send private message
View user's profile Post To page top
noggin_1979 Posted: Tue Aug 23, 2005 9:43 pm


Joined: 05 Apr 2005

Posts: 2
Re: Digest Number 212
I have a very simular situation. Unfortunatly we do not have Array
installed on our Unix system. Does anyone else have a solution?

Thanks
Scott Roth
Ohio State University Medical Center


--- In perl_official@yahoogroups.com, maneesh agrawal
<maneesh1978@y...> wrote:
> HI
>
> here`s a very simple solution
>
> my @arr1 = 0 .. 10;
> my @arr2 = 0 .. 10;
>
> my $comp = Array::Compare->new;
>
> if ($comp->compare(@arr1, @arr2) {
> print "Arrays are the same
";
> } else {
> print "Arrays are different
";
> }
>
> Bye
> Maneesh
>
>
> --- perl_official@yahoogroups.com wrote:
> > ------------------------ Yahoo! Groups Sponsor
> >
> > There is 1 message in this issue.
> >
> > Topics in this digest:
> >
> > 1. Comparing Two Array
> > From: Charles Pereira
> > <charlesti@y...>
> >
> >
> >
>
______________________________________________________________________
__
> >
>
______________________________________________________________________
__
> >
> > Message: 1
> > Date: Sun, 1 Feb 2004 13:09:52 -0300 (ART)
> > From: Charles Pereira <charlesti@y...>
> > Subject: Comparing Two Array
> >
> > Hi all,
> > Anyone help-me ?
> >
> > I need to do comparing two array.
> > So, I have two array with many difference names and
> > I would like to compare two and write the difference
> > names in the first array.
> >
> > Unfortunate I dont know how to do it ?
> > Please, Who can help-me ?
> > Tks for all.
> >
> >
> >
> > ---------------------------------
> > Yahoo! GeoCities: 15MB de espaço grátis para criar
> > seu web site!
> >
> > [Non-text portions of this message have been
> > removed]
> >
> >
> >
> >
> >
>
______________________________________________________________________
__
> >
>
______________________________________________________________________
__
> >
> >
> >
> >
> >
> --------------------------------------------------------------------
----
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/perl_official/
> >
> > To unsubscribe from this group, send an email to:
> > perl_official-unsubscribe@yahoogroups.com
> >
> > Your use of Yahoo! Groups is subject to:
> > http://docs.yahoo.com/info/terms/
> >
> --------------------------------------------------------------------
----
> >
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
Reply with quote
Send private message
View user's profile Post To page top
merlynstoneh... Posted: Wed Aug 24, 2005 3:37 am


Joined: 21 May 2004

Posts: 44
Re: Digest Number 212
>>>>> "Scott" == Scott <roth.242@...> writes:

Scott> I have a very simular situation. Unfortunatly we do not have Array
Scott> installed on our Unix system. Does anyone else have a solution?

It`s not Array. It`s Array::Compare, and it`s trivial to install.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help