1 # Copyright (C) 2001-2008, Parrot Foundation.
6 examples/pir/substr.pir - playing with substr
10 % ./parrot examples/pir/substr.pir
14 A exuberating C<substr> version of "Hello World".
25 WAX: $S2 = substr $S1, $I3, $I4
29 if $I4 == $I5 goto WANE
31 WANE: $I1 = length $S1
35 unless $I1 == $I3 goto WANE
43 # vim: expandtab shiftwidth=4 ft=pir: