Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: require and use strict vars (Data Dumper for DOOP)

by Anonymous Monk
on Dec 03, 2021 at 11:07 UTC ( [id://11139358]=note: print w/replies, xml ) Need Help??


in reply to require and use strict vars

Use your own dumper :) its only natural :D
sub Dumper { use Data::Dumper(); print Data::Dumper->new([@_]) ->Sortkeys(1) ->Indent(1) ->Useqq(1)->Dump . "\n"; }

Replies are listed 'Best First'.
Re^2: require and use strict vars (Data Dumper for DOOP)
by ForgotPasswordAgain (Priest) on Dec 06, 2021 at 19:03 UTC
    This would still use the module at compile time, not when the sub is called.
      So? switch the use to require

Log In?
Username:
Password:

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

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

    No recent polls found