Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 browsing the Monastery: (12)
As of 2014-08-29 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls