Re: Re: types of datas

2001-06-26 Thread Michael Fowler
On Wed, Jun 27, 2001 at 01:15:05PM +0800, Exile wrote: > >>>The problem is that when I compare the first and the second value: If > >>>they're really equals, the program say they are'nt. Notice "really equals". I will be getting back to it. > >>>Is ther a function to convert a value into an in

Re:Re: types of datas

2001-06-26 Thread Exile
t;>>they're really equals, the program say they are'nt. >>> >>>Is ther a function to convert a value into an integer ? - Original Message - From: Michael Fowler <[EMAIL PROTECTED]> To: Exile <[EMAIL PROTECTED]> Cc: PERL <[EMAIL PROTECTED]>

Re: types of datas

2001-06-26 Thread Michael Fowler
On Mon, Jun 25, 2001 at 10:14:52PM +0800, Exile wrote: > Q1. simply use this : if (($a =~ $b) && ($b =~ $a)) { $match = "Y" } You're comparing $a to $b using the regex operator. I doubt you intended to do this (if you did, there are various things you did wrong); you should be comparing them wit

Re: types of datas

2001-06-26 Thread Exile
Q1. simply use this : if (($a =~ $b) && ($b =~ $a)) { $match = "Y" } Q2. $integer = int($value) - Original Message - From: Stéphane JEAN BAPTISTE <[EMAIL PROTECTED]> To: PERL <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 9:05 PM Subject: types of data

Re: types of datas

2001-06-25 Thread Aaron Craig
Unlike strongly typed languages, Perl doesn't distinguish between types of scalar data, or rather, it massages it into the proper data depending on the context you're in. Meaning if I do this: my $sum = 1 + 1; now, $sum contains a number: 2; if I know say: print "$sum\n"; Perl automatically

Re: types of datas

2001-06-25 Thread Jos Boumans
I think you're going to need to send us a bit of code to go with this, because i'm really not sure what it is you're trying to do... "I have a loop (while) with a value which have different values." i can guess for a few explenations but code is probably easier =) Jos Boumans Stéphane JEAN BAP

types of datas

2001-06-25 Thread Stéphane JEAN BAPTISTE
Hi! I get a value from a URL and I put it into a variable. I have a loop (while) with a value which have different values. The problem is that when I compare the first and the second value: If they're really equals, the program say they are'nt. Is ther a function to convert a value into an inte