On Mon, 2009-01-12 at 18:40 -0600, Harry Putnam wrote: > I'm in the middle of some administrative type of scripting and my > skill level is pretty low. I ran up on a need to pass two different > kinds of chunks of into to a sub function. > > I'm familiar with the `func($thg1, thg2, thg3);' kind of syntax that > ends up as: 3 elements of `...@_' but I want to pass in an array, AND some > control variables that control reading of `...@_'. > > First I thought to make them the first whatever number of elements so > to be able to separate them from `...@_' with `shift', once inside the > sub func, but I suspect there is some simple syntax to use right at > the start (here func(...)) that will tell the sub function that some > of the args are not part of @_. > > Where can I see some examples of that? > >
See `perldoc perlsub` and search for /Pass by Reference/ -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. "It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years." --John von Neumann, circa 1950 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/