Skip Menu |
 

This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id: 123722
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: denni.pat [...] gmail.com
Cc:
AdminCc:

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



Subject: split deprecate
Date: Thu, 23 Nov 2017 17:21:37 +0100
To: bug-PDF-API2 [...] rt.cpan.org
From: denis patron <denni.pat [...] gmail.com>
Download (untitled) / with headers
text/plain 313b
version PDF-API2-2.033 <http://search.cpan.org/~ssimms/PDF-API2-2.033/> perl version 5.8.9 Unix OS Hi, if i use PDF:API2:Content.pm i receive: Use of implicit split to @_ is deprecated at PDF/API2/Content.pm line 1876. Use of implicit split to @_ is deprecated at PDF/API2/Content.pm line 1932. Thanks. Denis
Download (untitled) / with headers
text/plain 1.5k
Hi Denis, Thanks for the bug report. It looks like that warning only shows up in very old versions of Perl (not since 5.12.0, which was released in 2010). The recommended workaround is pretty ugly... The original: my $space_count = scalar split /\s/, $text; becomes: my $space_count = () = $text =~ /\s/g; So, I just spent a while pondering how many old versions to support, and decided on six years and a bit, which I think is between double and triple Perl itself, and should cover most LTS server release schedules. As a note, you must be running perl with the "-w" flag, since deprecation warnings are explicitly turned off for that module otherwise (see "What's wrong with -w" in perldoc warnings). If you're stuck on 5.8.9 (released in 2008) and can't upgrade, you can get the warnings to disappear by removing the -w flag or by using the suggested replacement code above. I'd suggest looking into using Perlbrew or plenv as well (which let you install a newer version of Perl locally without needing admin privileges), so that you can get the many performance and security updates that have been added in the past ten years. -- Steve On Thu Nov 23 11:21:52 2017, denni.pat@gmail.com wrote: Show quoted text
> version PDF-API2-2.033 <http://search.cpan.org/~ssimms/PDF-API2-2.033/> > perl version 5.8.9 > Unix OS > > Hi, if i use PDF:API2:Content.pm i receive: > > Use of implicit split to @_ is deprecated at PDF/API2/Content.pm line 1876. > > Use of implicit split to @_ is deprecated at PDF/API2/Content.pm line 1932. > > Thanks. > Denis


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.