I have below syntax used in shell script-
imp_vol -u $undr_price -s $str_price -p $price -t $mat -c $iscall | grep "Black Scholes " | cut-d"=" -f2
Where imp_vol is an executable that prints something. What will be its equivalent in Perl script? For example:
imp_vol -u 110.5 -s 110.9 -p 0.005 -t 0.041 -c 1
Underlying Price = 110.5
Strike Price = 110.9
Price = 0.005
Time = 0.041
IsCall = 1
Black Scholes Vol = 0.0108141
So my purpose is to get the value of Black Scholes Vol in this case as `.0108141 in some variable,as I have to pass that variable in some function again.
Any help will be appreciated.