SPUG:Best One-Liners and Scripts for UNIX
David Dyck
david.dyck at fluke.com
Fri Apr 18 12:12:27 CDT 2003
On Fri, 18 Apr 2003 at 10:05 -0700, Brian Hatch <spug at ifokr.org> wrote:
> Out of curiousity, what languages are zero based vs one based?
> Perl is zero based (unless you use '$[ = 1')
>
> Zero based:
> C, C++, Perl, Python[1] ...
bash, ksh
> One based:
> Fortran, awk, Perl[2]
csh
english (first person in line, not the zero'th, right)
> [1] IIRC
>
> [2] If you use '$[ = 1', but don't do that.
More information about the spug-list
mailing list