Skip Menu |
 

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 12728
Status: new
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors: jsegal [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.975
Fixed in: (no value)

Attachments


Subject: Getopt::Attributes under PPed file
Download (untitled) / with headers
text/plain 752b
When compiling a simple app using "pp -o foo input_file.pl", I've noticed that Getopt::Attributes doesn't seem to work on the compiled files. (e.g. I can specify the option on the command line, but it doesn't get passed in to the script). In the attached example, it works fine under "normal" perl, but having complied it under "pp" it will always print "got foo unset" even when an argument is passed in via "-foo". I am on perl 5.8.5, PAR 0.87, and Getopt::Attributes 1.3.2/1.3.3 on Linux 2.4.20-31.9smp. Getopt::Attributes is a pretty simple attributes-based wrapper aroung Getopt::Long, so I wouldn't be surprised if the issue is a more generic attribute or Attribute::Handlers problem, though I have not tested this hypothesis. Thanks! -JAS
Download pp_getopt_attributes_demo
application/octet-stream 126b

Message body not shown because it is not plain text.

Subject: Narrowed down to INIT problem
From: jsegal [...] cpan.org
Download (untitled) / with headers
text/plain 376b
I actually narrowed the problem down to an order-of-execution issue with INIT blocks, which the attached file demonstrates. Run under the perl interpreter, the script outputs init block lex before init lex after init run after pp, we get: lex before init lex after init init block So the INIT block is getting run after the main code is being executed! Thanks, -Jonathan
Download pp_init_demo
application/octet-stream 103b

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.