Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: marshalling data (braces)

by tye (Cardinal)
on Mar 12, 2013 at 03:58 UTC ( #1022916=note: print w/ replies, xml ) Need Help??


in reply to Re: marshalling data
in thread marshalling data

Actually, both of the uses of braces are valid alternatives (one only for moderately modern versions of Perl) to the methods you proposed. You can write "package main; ..." or "package main { ... }" (as of some non-ancient Perl version) and you can do "print $FH ..." or "print {$FH} ..." (since at least Perl 3).

- tye        


Comment on Re^2: marshalling data (braces)
Re^3: marshalling data (braces)
by thomas895 (Hermit) on Mar 13, 2013 at 07:30 UTC

    Huh, interesting.
    Well I have to admit I've never seen it used before. Oh well, I guess I learn something new every day.

    ~Thomas~ 
    "Excuse me for butting in, but I'm interrupt-driven..."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-08-27 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (250 votes), past polls