Hi,

Is it possible to write a function having an aarray (not: a reference to array)
as a parameter ?

------------------------------------------------------------------------------

For example, the first parameter of splice function is an array.

         my @taborig = ( qw( e0 e1 e2 e3 e4 e5 e6 ) );
         my @rslt = splice( @taborig, 2, 3);
         print Dumper(\@rslt);   # e2 e3 e4

         @taborig = ( qw( e0 e1 e2 e3 e4 e5 e6 ) );
         @rslt = splice( @taborig, 2);
         print Dumper(\@rslt);   # e2 e3 e4 e5 e6 

Can I write a function 'my_splice' acting the same way ?

Cheers,

Stanisław Romański
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to