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

Re^2: How to serialize and deserialize Dios/Object::InsideOut objects?

by Athanasius (Archbishop)
on May 24, 2019 at 14:47 UTC ( [id://11100466]=note: print w/replies, xml ) Need Help??


in reply to Re: How to serialize and deserialize Dios/Object::InsideOut objects?
in thread How to serialize and deserialize Dios/Object::InsideOut objects?

Hello clueless newbie,

Glad you found a solution. I just want to comment on this:

#use strict; # made redundant by use 5.014_00 #use warnings; # made redundant by use 5.014_00

The first comment is correct; but the second most certainly is not!

0:23 >perl -e "print $x;" 0:24 >perl -we "print $x;" Name "main::x" used only once: possible typo at -e line 1. Use of uninitialized value $x in print at -e line 1. 0:24 >perl -M5.014 -e "print $x;" Global symbol "$x" requires explicit package name (did you forget to d +eclare "my $x"?) at -e line 1. Execution of -e aborted due to compilation errors. 0:24 >perl -M5.014 -e "my $x; print $x;" 0:24 >perl -M5.014 -we "my $x; print $x;" Use of uninitialized value $x in print at -e line 1. 0:24 >

From use:

use VERSION also lexically enables all features available in the requested version as defined by the feature pragma, disabling any features not in the requested version's feature bundle.... Similarly, if the specified Perl version is greater than or equal to 5.12.0, strictures are enabled lexically as with use strict.

(See feature#FEATURE-BUNDLES for a list of the features associated with each Perl version.) The warnings pragma must be enabled explicitly — either via the lexical use warnings;, which is the preferred method; or via a -w command line switch; or by setting the global $^W variable to a true value (not usually recommended).

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^3: How to serialize and deserialize Dios/Object::InsideOut objects?
by clueless newbie (Curate) on May 24, 2019 at 14:54 UTC

    Living up to my username. I stand corrected!

    Thank you!

Log In?
Username:
Password:

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

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

    No recent polls found