shadowm

Untitled

Nov 5th, 2013
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.23 KB | None | 0 0
  1. shadowm@nanacore:~/src/wesnoth% perl -e '@foo = (0,1,2,3,4); $bar = 0; print join(" ",@foo[$bar, ++$bar])."\n";'
  2. 1 1
  3. shadowm@nanacore:~/src/wesnoth% perl -e '@foo = (0,1,2,3,4); $bar = 0; print join(" ",@foo[$bar++, $bar])."\n";'
  4. 0 1
Advertisement
Add Comment
Please, Sign In to add comment