Help for this page

Select Code to Download


  1. or download this
    open my $source,'-|',"bash /tmp/wrapper.sh" or die "$!";
    
    ...
    eval $dump;
    
    print $VAR1->{MONK};  #> jfroebe
    
  2. or download this
    lanx@nc10-ubuntu:/tmp$ cat wrapper.sh 
    . /tmp/src.sh
    ...
    export MONK=jfroebe
    
    lanx@nc10-ubuntu:/tmp$
    
  3. or download this
    my $bashcode=<<'_bash_';
    . /tmp/src.sh;
    ...
    eval $dump;
    
    print $VAR1->{MONK};  #> jfroebe
    
  4. or download this
    my $bashcode=<<'__bash__';
    . /tmp/src.sh;
    ...
    eval qx{bash -c "$bashcode"};
    
    print $VAR1->{MONK};  #> jfroebe