Menu

#6 not supported for perl 5.26

open
nobody
None
5
2024-03-05
2018-09-13
No

Hi,
YaSQL not work anymore after I upgrade to perl 5.28... please can anyone update the sources to keep it functional?

Discussion

  • Edoard Matz

    Edoard Matz - 2019-02-05

    Ran into the same issue recently. Came by today to see if there was a newer version for YaSQL. Not sure if you still have the issue. I've attached a patch with a fix. I've tested my changes on Ubuntu 18.04 and perl 5.28.

    In case you are curious this was caused by the below issue which before 5.26 would just caused a warning.
    Use of "do" to call subroutines is deprecated

    From https://perldoc.perl.org/perl5200delta.html
    Incompatible Changes
    do can no longer be used to call subroutines

    The do SUBROUTINE(LIST) form has resulted in a deprecation warning since Perl v5.0.0, and is now a syntax error.

     
  • Marcin Kasperski

     

    Last edit: Marcin Kasperski 2022-11-04
  • Marcin Kasperski

    Just in case somebody incomfortable with applying patches finds this issue: trivial edit is needed to fix the problem, just replace

    open(FOUT, $op . $op_text) || do query_err()
    

    with

    open(FOUT, $op . $op_text) or query_err(…)
    

    (remove word do , I also suggest replacing || with or but this is not essential).
    Note that there are two such lines.

    Then usual ./configure; make; sudo make install and tool works as expected (of course one must also install DBD::Oracle, for example cpanm --sudo DBD::Oracle)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.