in reply to Functions in Perl

I just wanted to post that I believe you've interpreted the author's request incorrectly, or rather you've done way too much work!

The way I interpret it, she just wants you to write a sub such that, given subRoutine('foo','bar','baz','quux') it prints out

1 foo 2 bar 3 baz 4 quux


($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: Re: Functions in Perl
by tachyon (Chancellor) on May 23, 2004 at 12:25 UTC

    I know it is obvious but the OP might learn something from it:

    sub args { print "$_\n" for @_ } args( qw( Perl is fun ) );