Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: marshalling data

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


in reply to Re: marshalling data
in thread marshalling data

Package Blocks were introduced in perl 5.12. They have the advantage of limiting the scope of lexical variables to the package. I did not use strict in this example because the the concept that I am trying to learn makes changes to the symbol table. The hashes and the the string $marshalling_data must be global variables. Explicitly specifing all the exceptions to strict would mask my intention.

Bill


Comment on Re^2: marshalling data
Re^3: marshalling data
by tobyink (Abbot) on Mar 12, 2013 at 06:59 UTC

    Perl 5.14 actually. Perl 5.12 introduced the package Foo 1.23 syntax.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-07-04 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls