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

Re: BerkeleyDB question

by $h4X4_|=73}{ (Monk)
on Jun 18, 2016 at 09:54 UTC ( [id://1166018]=note: print w/replies, xml ) Need Help??


in reply to BerkeleyDB question

You can use fork to do this effectively.
There are module that can save you time coding that could do this for you too.
Parallel::ForkManager, AnyEvent::ForkManager, Proc::Fork and Apache::fork just to name a few.
There are more modules that do fork.

Updated: or try forks::BerkeleyDB

Updated 2: In your two scripts you have warnings twice -w and use warnings; they both do the same thing.

Replies are listed 'Best First'.
Re^2: BerkeleyDB question
by afoken (Chancellor) on Jun 18, 2016 at 10:49 UTC
    Updated 2: In your two scripts you have warnings twice -w and use warnings; they both do the same thing.

    Not quite: -w and $^W both affect all files loaded, including all modules, whereas the scope of use warnings; is limited to the current block, or the current file if used outside blocks. See warnings and perllexwarn for details.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found