in reply to Slightly OT - automating nohup bg jobs...
Well, this isn't directly the question you asked, but you could probably work around the issue by having either script (or both) fork.
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
|
|---|