perl() ; sub perl {$h = "hacker" ; @j = qw(Perl Just Rocks); @j=(@j, "another"); $j[2] = $h ; @j = ($j[1], $j[3], $j[0], $j[2] ) ; print "\n@j[0 .. 3]\;\n" ; }
PS: It doesn't seem to return any errors for me...even with the -w flag.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: My first JAPH (a project to learn more perl)
by chromatic (Archbishop) on Sep 28, 2000 at 08:05 UTC | |
by Coplan (Pilgrim) on Sep 28, 2000 at 16:34 UTC | |
by ar0n (Priest) on Sep 28, 2000 at 16:42 UTC |