develooper Front page | perl.perl5.porters | Postings from November 2015

[perl #126715] Deprecate barewords?

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
November 23, 2015 20:42
Subject:
[perl #126715] Deprecate barewords?
Message ID:
rt-4.0.18-7054-1448311319-232.126715-15-0@perl.org
On Mon Nov 23 11:58:25 2015, plokinom@gmail.com wrote:
> Am 23.11.2015 um 20:49 schrieb bulk88 via RT:
> > https://metacpan.org/release/BULKDD/Acme-Win32-PEPM-0.02 uses them to
> > pack .pm files. I've attached a sample packed .pm.
> >
> 
> How much of that magic is fixed bytes? Because if it's just two bytes
> ('MZ'), you can work around it with 'MZ() if 0;' or similar. No
> barewords!

Just the first 2 bytes are magic, not the semicolon. Someone a while ago told me to use : and make it an unused label but I've never tried it. To fit "MZ() if 0;", I'd have to shorten the do not edit comment. There are only 2 free bytes (as spaces) before the binary escaping heredoc. The binary escaping heredoc must escape bytes 0x3C/60-0x3F/63 so it can not be moved.


-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=126715

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About