dideod.yang has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks. I want to achieve using personal function with many arrays. Below script, I show you sample. According script, only print A... I want to print all of values(A B C) in @x. How can I achieve my personal function.
my (@x,@y); @x =( "A" "B" "C"); @y =( "C" "D" "F"); &test(@x,@y): sub &test{ @test = @_[0]; print "@test\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: About personal function
by kevbot (Vicar) on Jul 19, 2018 at 05:16 UTC | |
Re: About personal function
by NetWallah (Canon) on Jul 19, 2018 at 05:20 UTC | |
Re: About personal function
by atcroft (Abbot) on Jul 19, 2018 at 05:20 UTC |
Back to
Seekers of Perl Wisdom