Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Creating bash functions using perls $ENV interface

by sauoq (Abbot)
on Oct 29, 2003 at 03:11 UTC ( #302898=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -le '$ENV{sauoq}="() { echo sauoq; }"; print `bash -c sauoq`'
    
  2. or download this
    #!/bin/bash
    sub sauoq() 
    ...
    }
    export -f sauoq
    ./script.pl
    
  3. or download this
    #!/usr/bin/perl
    print `bash -c sauoq`
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://302898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-04-25 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (474 votes), past polls