in reply to Executing a command after the preceding command finished processing

Just print the message from the background process:
system '( nohup sleep 5 ; echo Shell done. ) &'; print "Perl done.\n";
Beware: The message can appear in the middle of the command line. Precede it with a newline to prevent it, but it can still do weird things if you e.g. run mc in the meantime.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Executing a command after the preceding command finished processing
by Locutus_ (Initiate) on Mar 29, 2018 at 23:56 UTC

    Thanks for the prompt reply.

    I'm just confused as to where the code you provided would be placed in relation to the lines I provided. The two lines I provided both have a Perl script that is executed. Would your code follow my code or does it need to be placed elsewhere?