diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-10 17:39:51 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-10 17:39:51 -0400 |
commit | 85d4bad1e238a5e902cf390f023744c8e3dc1181 (patch) | |
tree | 77e8bd0623d6f34fa52a0adf960178b3864ccf09 /lib/Exporter/Lexical.pm | |
parent | 818958abaf7ad4f86101f88e74caf688b23be9a3 (diff) | |
download | exporter-lexical-85d4bad1e238a5e902cf390f023744c8e3dc1181.tar.gz exporter-lexical-85d4bad1e238a5e902cf390f023744c8e3dc1181.zip |
hack around this for now
Diffstat (limited to 'lib/Exporter/Lexical.pm')
-rw-r--r-- | lib/Exporter/Lexical.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Exporter/Lexical.pm b/lib/Exporter/Lexical.pm index d7f0ee3..8eaf1a2 100644 --- a/lib/Exporter/Lexical.pm +++ b/lib/Exporter/Lexical.pm @@ -29,6 +29,12 @@ sub import { for my $export (keys %exports) { lexical_import($export, $exports{$export}); } + + # XXX there is a bug with lexical_import where the pad entry sequence + # numbers are incorrect when used with 'use', so the first statement + # after the 'use' statement doesn't see the lexical. hack around this + # for now by injecting a dummy statement right after the 'use'. + _lex_stuff(";1;"); }; { |