S
soulshriek
hey
i just started learning perl 2 days ago.
and i have a little question and i can't find the answer on the net.
i tested this little script
#!/usr/bin/perl
use warnings;
use strict;
my $var = 0;
until ($var == 1.2) #
{
print "$var\n";
$var += 0.1;
}
and it does what it's surposed to do
but when i change
until ($var == 1.2) into until ($var == 1.1)
something strange happens
my perl version is 5.8.3 btw
could someone please explain this to me, i like to know why stuff happens
because everything happens for a reason
greetz
Soulshriek
i just started learning perl 2 days ago.
and i have a little question and i can't find the answer on the net.
i tested this little script
#!/usr/bin/perl
use warnings;
use strict;
my $var = 0;
until ($var == 1.2) #
{
print "$var\n";
$var += 0.1;
}
and it does what it's surposed to do
but when i change
until ($var == 1.2) into until ($var == 1.1)
something strange happens
my perl version is 5.8.3 btw
could someone please explain this to me, i like to know why stuff happens
because everything happens for a reason
greetz
Soulshriek