in reply to Subroutine Parameters
I suspect that was a copy/paste error when you posted the code. If it had been that way in the script that you actually ran, I think you would have gotten an error message (something about "can't treat a string (or number?) as an array reference") instead of the flattened list that GrandFather explained about.
Anyway, you probably don't need to be doing the prototyping thing in the sub declaration.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Subroutine Parameters
by chargrill (Parson) on May 31, 2007 at 04:13 UTC | |
Re^2: Subroutine Parameters
by GrandFather (Saint) on May 31, 2007 at 04:16 UTC |