laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello Masters,
I would be glad if someone could tell me how to embed bash function in perl. Also how to call them. For example: ##function body function name { echo "name is nayab rahil" } ##function call. name __________________________________ I am using backtick to run the below function but i always get this error `function forloop { for ((a=1;a<=5;a++)) var="$a" echo "$var" done }` $result=`forloop`; I want to make a function of the above for loop and run it. Also it should be embedded in perl script only. Please help!!! In reply to Embedding a bash funtion in perl script by nayabrahil
|
|