in reply to What does &! mean?
But this code does work.if ($key =~ /^PERIODEND/ && !$budgetdata) { BudgetGroup->budget($input, $myclass, 3) }
So this would be true as 1 bitwise and 1 = 1.my $key = "PERIODEND"; my $budgetdata = 0; print $key =~ /^PERIODEND/, "\n"; print $budgetdata, "\n"; if ($key =~ /^PERIODEND/ & !$budgetdata) { BudgetGroup->budget($input, $myclass, 3) }
|
|---|