https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29175

--- Comment #5 from Marcel de Rooy <[email protected]> ---
(In reply to David Cook from comment #4)
> I laughed when I read the original name, but now I'm curious how you even
> noticed this one. 

Sharp sight, no lenses :)

> I didn't even know until today that you could use a comma to put multiple
> calls into one single statement... at least not in this way I guess.

You shouldnt do it.
Here are a few sad examples:

use Modern::Perl;
my $a = 1, ( print "$a \n" );
Use of uninitialized value $a in concatenation (.) or string at zz line 2.

use Modern::Perl;
my $c = 1, ( print "$c \n" );
Global symbol "$c" requires explicit package name (did you forget to declare
"my $c"?) at zz line 2.
=> Please tell me the difference?

use Modern::Perl;
my $a = 1, my $b = 2, $a++, $b--, ( print "$a $b\n" );
1 -1
=> Clear enough, haha

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to