Re: parse arguments passed to subroutines

2011-01-30 Thread Jim Green
this will work, Thank you! On 30 January 2011 22:00, wrote: > Jim Green writes: >> >> Hello, >> I usually use my ($arg1, $arg2) = @_; >> to get the arguments parsed to a subroutine. >> I want this to be smarter. Sometimes I want to pass $start, $end to >> the sub, sometimes I want to pass $start

Re: parse arguments passed to subroutines

2011-01-30 Thread pyh
Jim Green writes: Hello, I usually use my ($arg1, $arg2) = @_; to get the arguments parsed to a subroutine. I want this to be smarter. Sometimes I want to pass $start, $end to the sub, sometimes I want to pass $start, $count to the sub. but in this case my ($arg1, $arg2) = @_; will get co

parse arguments passed to subroutines

2011-01-30 Thread Jim Green
Hello, I usually use my ($arg1, $arg2) = @_; to get the arguments parsed to a subroutine. I want this to be smarter. Sometimes I want to pass $start, $end to the sub, sometimes I want to pass $start, $count to the sub. but in this case my ($arg1, $arg2) = @_; will get confused, it doesn't know i