[Koha-devel] Perl syntax for strings

Fridolin SOMERS fridolin.somers at biblibre.com
Tue Jun 15 10:19:12 CEST 2021


Hi,

I see in Perl code some cases where a string in written with a space 
between q or qq or qw and string.
Like : qq /foo bar/ instead of qq/foo bar/

It works, but I dont find it in docs like 
https://perldoc.perl.org/perlop#Quote-Like-Operators

Most of cases are in :
   use CGI qw ( -utf8 );

There are only 29 other cases :
   git grep -E ' q[qw]? [/({]' | grep -v 'use CGI qw '

Should we add a coding guideline ?
https://wiki.koha-community.org/wiki/Coding_Guidelines

I must admint for me it would be better to avoid it because it breaks 
syntax coloring in my editor (Eclipse with EPIC).
But maybe other have the same issue.

Best regards,

-- 
Fridolin SOMERS <fridolin.somers at biblibre.com>
Software and system maintainer 🦄
BibLibre, France


More information about the Koha-devel mailing list