Help for this page

Select Code to Download


  1. or download this
    $ perl -le'use Config; print $Config{sh}'
    /bin/sh
    
  2. or download this
    $ /bin/sh -c 'echo $SHELL'
    /bin/bash
    
  3. or download this
    sub backticks_mysh {
      open(my $pipe, '-|', '/bin/mysh', '-c', $_[0])
    ...
      local $/ = wantarray ? $/ : undef;
      <$pipe>
    }