summaryrefslogtreecommitdiff
path: root/dist/Safe
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-01-09 09:38:11 +0000
committerNicholas Clark <nick@ccl4.org>2011-01-09 09:38:11 +0000
commitf8a58b02cba77e7c7459cd85a1596c81a781f79f (patch)
treea83cd2f94ffbe6a14387502fcda1e9eded50be7d /dist/Safe
parent9561d06f3dc19930c1acfa8c2e046c80782cb876 (diff)
downloadperl-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.t5
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 /^#/;