Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: marshalling data (braces)

by tye (Sage)
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        

Replies are listed 'Best First'.
Re^3: marshalling data (braces)
by thomas895 (Chaplain) 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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022916]
[1nickt]: They assume that if I want a 17" monitor I could not possibly want 4k screen
[1nickt]: They assume I do not need a DVD drive
[1nickt]: Heh, or they assume that if I want all that I am a "gamer" and I must want red backlighting for the keyboards and that I will pay $3500 ...
[stevieb]: what is your budget? HP 17" 4k display, DVD writer, full numeric keypad
[stevieb]: $1500 USD

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-03-26 18:06 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (315 votes). Check out past polls.