Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Editing features for advanced users

by gmax (Abbot)
on Jan 26, 2002 at 15:40 UTC ( #141765=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
  2. or download this
    let b:current_syntax = "perl"
  3. or download this
    syn include @Sql <sfile>:p:h/sql.vim
    syn region perlSQL start="qq{" end="}" contains=@Sql keepend
    syn region perlSQL start="qq\[" end="\]" contains=@Sql keepend
    syn region perlSQL start="<<SQL" end="^SQL" contains=@Sql keepend
  4. or download this
    my $sql1 = qq{ SELECT fieldname 
        FROM $tab_array[0]
        FROM $tab_hash{$current}
        WHERE otherfield = ( ? )
  5. or download this
    my $sign = qq {DO NOT SELECT FROM MY TABLE !} 
  6. or download this
    :runtime! syntax/2html.vim
  7. or download this
    # ./configure --enable-perlinterp 
    # make
    # make install
  8. or download this
    :perl $count = 0
    :perldo $count += split /[;_<> ]/, $_ 
    :perl VIM::Msg($count)
  9. or download this
    :perl @lines = sort {$a <=> $b} $curbuf->Get(1 .. 15)
    :perl $curbuf->Set(1, @lines)
  10. or download this
    :perl $curbuf->Set(1, sort {$a <=> $b} $curbuf->Get(1 .. 15))
  11. or download this
    :10,30perldo s/\b(:?Monks|advocates)\b/PerlMonks/
    :40,45perldo tr/A-F0-9//cd

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://141765]
Approved by root
Front-paged by bunnyman
[marioroy]: Corion, start and start_child in MCE::Hobo::Manager return a MCE::Hobo object, whereas P::FM returns the PID. I can have it return the PID though. I tried Hobo::Manager with several P::FM modules, just changed P::FM to MCE::Hobo::Manager and it works.
[marioroy]: I also have a Hobo driver for Forklift allowing folks to use in multiple classes, no conflicts with one another. That's not possible for P::FM.
[Discipulus]: congrats marioroy!
[marioroy]: CORE::wait works well eventhough multiple instances or classes using Hobo::Manager.
[Corion]: marioroy: I'm not sure what the normal use for the PID is in P:FM, but I guess that most programs just ignore or log it
[Corion]: Oh, yes, programs could call wait $pid, but if your $pid is an object, then you could add a ->wait method to it and wait $pid would call that automatically "thanks" to indirect object notation
[marioroy]: Just documentation edits is all that remains. Hobo::Simple provides foreach and forseq with identifier capability -- all transparently supporting array, hash, file handle, and seq 1 .. N.
[marioroy]: Corion Regarding PID, that's great. So will leave it so compatible with MCE::Hobo. e.g. ->create returns a Hobo object. Folks can get ->pid from it. So, that's not a problem.
[choroba]: ad readdir: 5.12 needed

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-05-26 08:44 GMT
Find Nodes?
    Voting Booth?