in reply to Re: understanding curly braces surrounding an array
in thread understanding curly braces surrounding an array

Well, since nothing's being done with $_,:

print @alarms;

More "work" might make sense if you're trying to append a newline per iteration or something.


Dave

Replies are listed 'Best First'.
Re^3: understanding curly braces surrounding an array
by GrandFather (Saint) on Mar 09, 2012 at 03:18 UTC

    Indeed, although that doesn't contrast the Perl for loop constructs with the C construct used by the OP. ;) (And maybe, perhaps, the OP simplified his example code.)

    True laziness is hard work