Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^4: One piece of code, two mysteries!

by BrowserUk (Pope)
on Oct 05, 2012 at 04:09 UTC ( #997372=note: print w/replies, xml ) Need Help??

in reply to Re^3: One piece of code, two mysteries!
in thread One piece of code, two mysteries! (UPDATED.)

When I commented out the line entirely,

Do you mean like this?:

#use threads stack_size => 4096;

If so, you should have at the very minimum got an error: "Can't call method "async" without a package or object reference at ..."!?

To disable the stack_size parameter, you should do:

use threads; # stack_size => 4096;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Replies are listed 'Best First'.
Re^5: One piece of code, two mysteries!
by Polyglot (Pilgrim) on Oct 05, 2012 at 04:58 UTC
    That's interesting. Yes, I commented out the entire line, but got no error message. It was simply as if the program had hung. I had to CTRL + C out of it after I had waited a couple minutes or so. (Tried again later and it went over 12 min. before I lost patience.)

    Just for fun, I just ran it with the "use threads;" implementation, and it gave me the exact same results as with the 64k stack size.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997372]
[1nickt]: Perl300 Try Email::Stuffer
[1nickt]: Or for a little more control, Email::Sender:: Simple
[Perl300]: any suggestion on which one might be secure and simplest. I am not doing anything complex, just check some conditions from DB tables and send email to myself (same domain) if conditions are met
[1nickt]: read the doc of the suggestions I just gave
[1nickt]: A lot depends on whether you are sending mail from your local box or using a remote server
[hippo]: Secure in what sense?
[Perl300]: I am sending from remote server
[1nickt]: Then see Email::Sender:: Transport::SMTP
[Perl300]: secure in sense it should not cause any security concerns, create some loop holes.... I don't know much about it but don't want to cause any problem for security guys here
[Perl300]: I used sendmail before for a few times but read that is causes some security issues so trying something better/secure this time

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-10-17 15:57 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (233 votes). Check out past polls.