2 ms·
Implicit variables all came from UNIX shells which are in use to this day. What was the exit code of the last program? "$?". C works similarly. What was the
by jrockway 7y ago
Implicit variables all came from UNIX shells which are in use to this day. What was the exit code of the last program? "$?".
C works similarly. What was the error from the last system call? "errno".
Certainly there are problems with this; we've all seen the programs that output "Error doing something: Success". But it isn't Perl that invented this. It's a UNIX tradition.