Array::compare question

2001-07-26 Thread Diego Riaño

Hi everybody

 Does someone know if the array::compare module can handle array of
arrays?

Thanks in advances

DiegoM


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Arrays as subroutines arguments

2001-07-26 Thread Diego Riaño

Hi

How can I pass two arrays as subroutine arguments?

thanks in advances


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Hash of arrays

2001-07-25 Thread Diego Riaño

I have this hash or array

my %array=(
NumericalResults => [@NumericalResults],
general => [@general],
);

I want to retrieve the name of one of the original arrays, for example
retrieve:

@NumericalResults
to use it in another function.

Can someone helpme

Thanks


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Array::compare problem Correction

2001-07-25 Thread Diego Riaño

Hi Everybody

Sorry, I do a misstake in the previous message.  This is the correct
one.

I have an array compare problem:
I have some array like this

my @array1=();
my @array2=();
my @array3=();
my @array4=();

my @array5=(@array1,@array2);
my @array6=(@array3,@array4);

Then I use Array::compare to compare @array5 and @array6:

my $comp = Array::Compare->new(DefFull => 1);
my @differences=$comp->compare(\@array5, \@array6);

I know there are differences between @array1 and @array3 and between
@array2 and @array4,
but in the @differences array I found only the differences between
@array2 and @array4.

Could some help me.

Thanks in advances


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Array::compare problem

2001-07-25 Thread Diego Riaño

Hi Everybody

I have an array compare problem:
I have some array like this

my @array1=();
my @array2=();
my @array3=();
my @array4=();

my @array5=(@array1,@array2);
my @array6=(@array3,@array4);

Then I use Array::compare to compare @array5 and @array6:

my $comp = Array::Compare->new(DefFull => 1);
my @differences=$comp->compare(\@uniquelines, \@queries);

I know there are differences between @array1 and @array3 and between
@array2 and @array4,
but in the @differences array I found only the differences between
@array2 and @array4.

Could some help me.

Thanks in advances


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Comparing Arrays

2001-07-19 Thread Diego Riaño

Hi everybody

I have two array, like this

@array1=(one, two, three);
@array2=(one,tww,three);

Is there some way to compare the two arrays?
I was trying with the eq and ne operations inside an IF statement but i
does not work

Could someone help me.


Thanks

Diego


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Joining variables

2001-06-27 Thread Diego Riaño

Hi Perl guys

I have another problem:

I have three variables working:
$var1
$var2 #and
$var3

I want to join these three variables in a new one, with some formar,
something like that:

$newvar will be $var1-$var2-$var3
for example if:

$var1=2000
$var2=08 #and
$var3=15

then

$newvar=2000-08-15

I hope someone can help me

Thanks in advances

DiegoM




DBI Module 2

2001-06-22 Thread Diego Riaño

Hello Everybody

Thaks a lot for the help.

In fact, I read the page you told me, I know, now, how to connect and
disconnet to my mysql database, and howto give it SQL statements (
inset, create).

But I could not find the way to send or retrive the result of the
describe table statement.

Could someone help me?

Thanks in advances, again

Diego Riano




DBI Module

2001-06-22 Thread Diego Riaño

Hi Everybody

I am trying to use de perl DBI module to use a MySQL database.  I want to know
where can I find a tutotial or maybe a HowTo (I do not know?) about perl DBI
module?
Could someone help me?

Thanks in advances

Diego Riano




Tables help

2001-06-06 Thread Diego Riaño

Hi everybody

I am working on some kind of files and i have to change the format and
get a table.

thes files had the following form:

c1 kdlsakdlksa
c2 djskadklsa
c2 djksadlsadaskdj
c3 dskadjlkj
c4 dksadkasdljsa

I will to chenge them to this:

c1c2 c3  c4
kdlsakdlksadjskadklsadskadjlkjdksadkasdljsa
djksadlsadaskdj

Could someone help me?

thanks in advances

DiegoM