diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-09 09:38:11 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-09 09:38:11 +0000 |
commit | f8a58b02cba77e7c7459cd85a1596c81a781f79f (patch) | |
tree | a83cd2f94ffbe6a14387502fcda1e9eded50be7d /dist/Safe | |
parent | 9561d06f3dc19930c1acfa8c2e046c80782cb876 (diff) | |
download | perl-f8a58b02cba77e7c7459cd85a1596c81a781f79f.tar.gz |
Extract the opcode data from regen/opcode.pl into regen/opcodes
Whilst it is possible to open regen/opcode.pl and parse it to find the __END__
token, it's not the cleanest approach.
Diffstat (limited to 'dist/Safe')
-rw-r--r-- | dist/Safe/t/safeops.t | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dist/Safe/t/safeops.t b/dist/Safe/t/safeops.t index 7221c21da2..616a848178 100644 --- a/dist/Safe/t/safeops.t +++ b/dist/Safe/t/safeops.t @@ -28,10 +28,7 @@ while (<DATA>) { $code{$1} = $2; } -open my $fh, '<', '../../regen/opcode.pl' or die "Can't open opcode.pl: $!"; -while (<$fh>) { - last if /^__END__/; -} +open my $fh, '<', '../../regen/opcodes' or die "Can't open opcodes: $!"; while (<$fh>) { chomp; next if !$_ or /^#/; |