in reply to Re: Re: Declaring variables - is it legal to do this?
in thread Declaring variables - is it legal to do this?

Yes, but there's only one Perl interpreter, so whatever the doncumentation says, the interpreter (perl) is always right. (Larry is always right, in other words.)

my (undef) surprised me a bit btw.

Replies are listed 'Best First'.
Re: Re: Re: Re: Declaring variables - is it legal to do this?
by theon (Beadle) on May 16, 2004 at 02:42 UTC
    Well since perl is written in C, there could be unspecified behaviours in Perl itself (ie. having different valid results for the same code with different platforms), but I guess Perl was designed to avoid that.

      Of course there are. One example is weather select provides the remaining time, and weather it restarts after a signal. This is system-dependent, and ultimately depends on what the kernel and the C library does.

        I don't see how this is related to unspecified behaviours I was talking about. Here select is clearly system-dependant because it precisely depends on the one provided by the system (and it doesn't depend on C at all, there's no select in C).