SPUG: removing array from "array of arrays"

weaver weaver at eai.com
Tue Jun 12 12:12:44 CDT 2001


I have:

@args = ("arg1", "arg2", "arg3");

for($i = 1; $i < $something; $i++)
{
  push @args_list, @args;	# or push @args_list, [ @args ];
}

and in a subroutine would like to remove the @args that I pushed onto
@args_list during one loop iteration, WITHOUT KNOWING THE # OF ELEMENTS
ASSIGNED TO @args.  In other words, I DON'T want to use:

@var = @_[0, 1, 2];

or anything of this nature.


How can I do this, can it be done?

Thanks,

ryan


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list