in reply to Re: Alarm In Perl
in thread Alarm In Perl

I want to invoke from a thread an alarm in main ,How will I achieve that,

You cannot. Any signal raised within your thread will only be seen by that thread; not main.


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.

Replies are listed 'Best First'.
Re^3: Alarm In Perl
by meena (Novice) on Jul 25, 2013 at 12:16 UTC
    I want to send a message from thread to main so that some operation can be performed in the main Eg: alarm can be set in main

      I repeat: "You cannot" do so with alarm.

      Describe your overall purpose and maybe we can suggest another way of achieving it.


      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.

      This will depend on what precisely you mean by "message", but consider sockets or shared variables or signals as some things to investigate first.

      Perhaps see perlipc for starters.