On May 24, 5:36 am, [EMAIL PROTECTED] (Ben Edwards) wrote:
> I am passing a reference to a hash ($publisher) and a array with an
> unknown number of elements (@files). So the call is
>
> delete_from_publishers( $publisher, @files )
>
> Currently the beginning of the sub is:-
>
> sub remove_files_f
Jeff Pang wrote:
Paul Johnson 写道:
Jeff Pang wrote:
Ben Edwards 写道:
I am passing a reference to a hash ($publisher) and a array with an
unknown number of elements (@files). So the call is
delete_from_publishers( $publisher, @files )
mnnn,don't pass an original array to a subroutine at a
Paul Johnson 写道:
On Thu, May 24, 2007 at 05:55:13PM +0800, Jeff Pang wrote:
Ben Edwards 写道:
I am passing a reference to a hash ($publisher) and a array with an
unknown number of elements (@files). So the call is
delete_from_publishers( $publisher, @files )
mnnn,don't pass an original array
On Thu, May 24, 2007 at 05:55:13PM +0800, Jeff Pang wrote:
> Ben Edwards 写道:
> >I am passing a reference to a hash ($publisher) and a array with an
> >unknown number of elements (@files). So the call is
> >
> >delete_from_publishers( $publisher, @files )
> >
>
> mnnn,don't pass an original array
Jeff Pang 写道:
Ben Edwards 写道:
I am passing a reference to a hash ($publisher) and a array with an
unknown number of elements (@files). So the call is
delete_from_publishers( $publisher, @files )
mnnn,don't pass an original array to a subroutine at anytime.
Instead just pass a reference to r
Ben Edwards 写道:
I am passing a reference to a hash ($publisher) and a array with an
unknown number of elements (@files). So the call is
delete_from_publishers( $publisher, @files )
mnnn,don't pass an original array to a subroutine at anytime.
Instead just pass a reference to routines.like,
Hi Ben,
You can use shift for this.
sub remove_files_from_ftp_server {
my $pub_detail = shift @_;
my @files = @_;
Thank You,
-srini
Ben Edwards wrote:
I am passing a reference to a hash ($publisher) and a array with an
unknown number of elements (@files). So the call is
delete_from_pu
I am passing a reference to a hash ($publisher) and a array with an
unknown number of elements (@files). So the call is
delete_from_publishers( $publisher, @files )
Currently the beginning of the sub is:-
sub remove_files_from_ftp_server {
my $pub_detail = $_[0];
my $args = @_;
my @fi