in reply to Re: Telling require "I've handled it"
in thread Telling require "I've handled it"

Please expand on how you would go about returning a second parameter with "no first parameter at all". As far as I can tell, (undef, ...) is identical to (but more convenient than) creating an empty array and setting its second element while leaving the first untouched:
#!/usr/bin/env perl use Data::Dumper; my @a1 = (undef, 'second'); my @a2; @a2[1] = 'second'; print Dumper(\@a1, \@a2); __END__ Outputs: $VAR1 = [ undef, 'second' ]; $VAR2 = [ undef, 'second' ];

Replies are listed 'Best First'.
Re^3: Telling require "I've handled it"
by jethro (Monsignor) on Nov 02, 2010 at 01:08 UTC
    Ah yes, I should have been more exact. What I meant was giving the subroutine pointer as first parameter, leaving out the nominal first paramter, the filehandle, completely. In other words no undef at all and the subroutine reference is promoted to first parameter.