Skip to content

Commit

Permalink
Replace custom anon filehandle generation with Symbol.pm.
Browse files Browse the repository at this point in the history
It's been in Perl since 5.004.

For rt.cpan.org 50315
  • Loading branch information
schwern committed Jan 19, 2012
1 parent 1cfeff1 commit c95435d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/ExtUtils/Packlist.pm
Expand Up @@ -19,14 +19,12 @@ Make a filehandle. Same kind of idea as Symbol::gensym().
=cut

sub mkfh()
{
no strict;
my $fh = \*{$fhname++};
use strict;
return($fh);
sub mkfh {
require Symbol;
return Symbol::gensym();
}


=item __find_relocations
Works out what absolute paths in the configuration have been located at run
Expand Down

0 comments on commit c95435d

Please sign in to comment.