in reply to can i pass an array as an argument during a sub routine call???

As GrandFather rightly pointed out, this is okay as long as the array is the last argument passed to the function.

You can rewrite your package as follows:

package Request; method($@) { my ($a1, @b1) = @_; }
  • Comment on Re: can i pass an array as an argument during a sub routine call???
  • Download Code