Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: understanding curly braces surrounding an array

by davido (Cardinal)
on Mar 09, 2012 at 02:19 UTC ( [id://958590]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://958590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found