Subroutine as a new Task

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Subroutine as a new Task

    Hello,

    how can I start a soubroutine as a new task.
    The main script should run on until the end is reached.
    But the subroutine should run in another task where I can work with it.
    OS: Win200,WinNT


    Jochen Friedmann Guest

  2. Similar Questions and Discussions

    1. subroutine problem
      Hi all, I have recently started to learn perl. After reading Randal Schwartz’s Learning perl, I decided to give my first program a whirl. Upon...
    2. Subroutine interaction
      Hi all, the following structure does not work as intended: sub read_index { my $gedicht_path = shift; my (%author_indexlines,...
    3. reference to a subroutine in @INC
      Hi, I am trying to package a perl script and the modules it uses , in a tar file. When untarred on any machine, the modules can be found in a known...
    4. Cannot End Task w/Task Manager
      I had a crash of FrameMaker, and Task Mgr would not end the task. It went through the routine (hour glass followed by offer to send report to...
    5. block "new task" on task manager
      We are limiting access to what a patron in the library can run from our pc's. We used gpedit and taskbar features to hide the run command and to...
  3. #2

    Default Re: Subroutine as a new Task

    Jochen Friedmann (jochen.friedmann2@de.bosch.com) wrote on MMMDCLXVII
    September MCMXCIII in <URL:news:bk48o4$ea4$1@ns2.fe.internet.bosch.com >:
    "" Hello,
    ""
    "" how can I start a soubroutine as a new task.
    "" The main script should run on until the end is reached.
    "" But the subroutine should run in another task where I can work with it.
    "" OS: Win200,WinNT


    The traditional way of doing this is using fork(). Which for quite some
    time, has been available for the Windows platform as well.

    perldoc -f fork
    perldoc perlipc



    Abigail
    --
    echo "==== ======= ==== ======"|perl -pes/=/J/|perl -pes/==/us/|perl -pes/=/t/\
    |perl -pes/=/A/|perl -pes/=/n/|perl -pes/=/o/|perl -pes/==/th/|perl -pes/=/e/\
    |perl -pes/=/r/|perl -pes/=/P/|perl -pes/=/e/|perl -pes/==/rl/|perl -pes/=/H/\
    |perl -pes/=/a/|perl -pes/=/c/|perl -pes/=/k/|perl -pes/==/er/|perl -pes/=/./;
    Abigail Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139