Page Index Toggle Pages: 1
Topic Tools
Normal Topic Perl 5.12/5.14 incompatability (Read 2,519 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,128
Location: Earth

YaBB 2.6.0
Re: Perl 5.12/5.14 incompatability
Reply #9 - Nov 6th, 2012 at 9:31pm
Post Tools
This Topic was moved here from YaBB 2 - Bugs [Need Verification] [move by] Dandello.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,128
Location: Earth

YaBB 2.6.0
Re: Perl 5.12/5.14 incompatability
Reply #8 - Aug 24th, 2012 at 4:32pm
Post Tools
This may be due to a difference between the various flavors of Perl - some may be flagging this deprecation earlier than in others.

But this doesn't surprise me. (Activestate Perl 5.12 on XP doesn't throw this as an error but 5.14 does.)
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Perl 5.12/5.14 incompatability
Reply #7 - Aug 24th, 2012 at 3:58pm
Post Tools
@Dandello and other Monks of all orders.

This problem may also affect Perl 5.10, although I am unsure why - it may be a Perl Mod that is doing it???

Here at yabbforum.com we are running Perl 10. (Perl version v5.10.1 )

and I get this error:

An Error Has Occurred! Use of qw(...) as parentheses is deprecated at /home/yabbforum/cgi-bin/community/Admin/Backup.pl line 225.

We are running the latest SVN with only a few patches.

what do you think?

thanks for all your work.
Cool
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,128
Location: Earth

YaBB 2.6.0
Re: Perl 5.12/5.14 incompatability
Reply #6 - Aug 4th, 2012 at 3:27pm
Post Tools
I have discovered that if I don't post these things off my desk-top, I'll forget where I put them.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Perl 5.12/5.14 incompatability
Reply #5 - Aug 4th, 2012 at 12:16pm
Post Tools
@ Dandello

Thanks very much for posting the fixes.

Cool
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,128
Location: Earth

YaBB 2.6.0
Re: Perl 5.12/5.14 incompatability
Reply #4 - Aug 3rd, 2012 at 9:31pm
Post Tools
The fixes:
In .Admin/ModuleChecker.pl
find
Code
Select All
foreach $module qw(Digest::MD5 Time::HiRes Time::Local File::Find CGI Net::SMTP Net::SMTP::TLS Compress::Zlib Compress::Bzip2 Archive::Tar Archive::Zip MIME::Lite LWP::UserAgent HTTP::Request::Common Crypt::SSLeay IO::Socket::INET Digest::HMAC_MD5 Carp bytes integer) {
 



Replace with
Code
Select All
foreach my $module (qw(Digest::MD5 Time::HiRes Time::Local File::Find CGI Net::SMTP Net::SMTP::TLS Compress::Zlib Compress::Bzip2 Archive::Tar Archive::Zip MIME::Lite LWP::UserAgent HTTP::Request::Common Crypt::SSLeay IO::Socket::INET Digest::HMAC_MD5 Carp bytes integer) ){
 



In .Admin/Backup.pl Find:
Code
Select All
foreach $module qw(Compress::Zlib Compress::Bzip2) {
 



Replace with:
Code
Select All
foreach my $module (qw(Compress::Zlib Compress::Bzip2) ){
 



Find
Code
Select All
foreach $command qw(/bin/gzip /bin/bzip2) {
 



Replace with:
Code
Select All
foreach my $command (qw(/bin/gzip /bin/bzip2)) {
 



Find:
Code
Select All
foreach $module qw(Archive::Tar Archive::Zip) {
 



Replace with:
Code
Select All
foreach my $module (qw(Archive::Tar Archive::Zip) ){
 



Find:
Code
Select All
foreach my $path qw(src bo lan mem mes temp var html upld) {
 



Replace with:
Code
Select All
foreach my $path (qw(src bo lan mem mes temp var html upld)) {
 



With any luck I've caught all of them.

This issue was as a result of a syntax shortcut that used to be allowed, but with Perl getting more rigorous as to disallowing major exceptions to certain syntax rules, it broke.  In this case any list being iterated over in a foreach loop must be in parentheses, so logically the entire quoted list, including the code that says it's a quoted list, should be in parentheses.

see: http://search.cpan.org/~jesse/perl-5.14.0/pod/perldelta.pod#Deprecations

My own issue with ACP 5.14 Win is that the build for Perl Tk failed. So I'm stuck with 5.12 on my desktop because I have an entire very CPU and RAM intensive program built using Perl Tk.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Perl 5.12/5.14 incompatability
Reply #3 - Aug 3rd, 2012 at 9:10pm
Post Tools
Dandello wrote on Aug 3rd, 2012 at 9:02pm:
ActiveState Perl 5.14 for Windows has other issues as well - like not supporting some modules I absolutely need.

i don't know about you but i was pulling my hair out with it  Angry lol  Grin

Edited:
i read somewhere that Perl and ActiveState Perl is being streamlined
« Last Edit: Aug 3rd, 2012 at 9:13pm by xnoddyx »  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,128
Location: Earth

YaBB 2.6.0
Re: Perl 5.14 incompatability
Reply #2 - Aug 3rd, 2012 at 9:02pm
Post Tools
Okay - I did kinda think it was just for 5.14, but someone mentioned that they may have had the error on 5.12 - but they may have been in error.  Wink or there may be a subtle difference between ActiveState Perl and other Perl builds.

ActiveState Perl 5.14 for Windows has other issues as well - like not supporting some modules I absolutely need.
« Last Edit: Aug 3rd, 2012 at 9:05pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Perl 5.12/5.14 incompatability
Reply #1 - Aug 3rd, 2012 at 8:52pm
Post Tools
Dandello wrote on Aug 3rd, 2012 at 7:16pm:
An Error Has Occurred! Use of qw(...) as parentheses is deprecated at

i had that when i was running ActivePerl 5.14 so went back to ActivePerl 5.12.4
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,128
Location: Earth

YaBB 2.6.0
Perl 5.12/5.14 incompatability
Aug 3rd, 2012 at 7:16pm
Post Tools
Luckily most hosting services are running Perl 5.08 to 5.10.

BUT there is depreciated syntax in  .Admin/BackUp.pl, as well as other files, which will keep your existing forum from making backups and on a new install it just won't install using SetUp.pl.

This will only happen if your hosting service is using one of the newest versions of Perl.

I'll post bug-fixed files here Monday or so - unless somebody beats me to it.

The actual error reads "An Error Has Occurred! Use of qw(...) as parentheses is deprecated at ...Admin/Backup.pl  line 225." 
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top