in reply to Re^2: Ordering Template cards
in thread Ordering Template cards

> However, when written as you suggest, it always returns true

That's hard to believe, it's a very common construct.

And a little test in the debugger doesn't show any endless loop.

DB<2> while ( my ($x) = () ) {die $x} DB<3>

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^4: Ordering Template cards
by Bod (Parson) on Jan 28, 2021 at 01:10 UTC

    Sorry - I was confusing the error I detailed in this post -> Re^3: my $x or my ($x)

    Of course you are right about it being a common construct and, as soon as I tried to reproduce the problem it became obvious I was getting rather muddled.