Perl Function Passing And Returning of a Reference

Google+ Pinterest LinkedIn Tumblr +

\n”;

my @arr = (“bbb”, “ccc”, “ddd”);
my %ha = (four => “eee”, five => “fff”, six =>”ggg”);

sub mySub
    {
        print $_[0], ” “, $_[1], ” “, $_[2], ” “, $_[3], ” “, $_[4], ” “, $_[5], ” “, $_[6], ” “, $_[7], ” “, $_[8], ” “, $_[9];
    }

mySub(“aaa”, @arr, %ha);

print “

Share.

About Author

Leave A Reply