#!/usr/bin/perl $[ = 2; my @xs = (1, 2, 3); print $xs[2] . "\n";print $xs[3] . "\n";print $xs[4] . "\n";
Standard input is empty
1 2 3
Use of assignment to $[ is deprecated at prog.pl line 3.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!