@_ refer to the whole dataset right?
Do a ctrl+f for spankTheMonkey to see what spankTheMonkey is being given (which args are passed)
Then see perlvar#@_ Within a subroutine the array @_ contains the parameters passed to that subroutine.
So, @_ is not "the whole dataset", there is no variable "the whole" of type "dataset" :)
But if I want to only include data from column 4 onward to the end, I have to write a function to split the data and then take column 4 to end and put it into @_?
Yes, you can modify spankTheMonkey to discard parts ... essentially turning it from readFullData into readColumnRange( $in_filehandle, 4 .. 10 );
perlintro#Arrays ought to help
In reply to Re^21: How to store the output from foreach loop into variable/array without printing?
by Anonymous Monk
in thread How to store the output from foreach loop into variable/array without printing?
by hellohello1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |