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
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]>
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
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
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
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
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