in reply to Re: Re: alphanumeric autoincrement?
in thread alphanumeric autoincrement?
Neither of those behaviors, while perfectly logical, have any correspondence to C or Pascal or Java. The only thing the Perl compiler checks is what kind of variable you are working with, not what type.my $foo = "abc"; $foo++; print "$foo\n"; ---- abd my $foo = 1.1; $foo++; print "$foo\n"; ---- 2.1
So, you are only ever working with an int, for example, through programmer choice. So, you're only ever working with a user-defined type by programmer choice. The compiler isn't going to enforce anything for you with regard to type. (Well, it's not exactly anything, but close enough for government work.)
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re3: alphanumeric autoincrement?
by busunsl (Vicar) on Aug 16, 2001 at 17:03 UTC |