Next The Identity Function 12

Function Calls in Strings

        use Eval;
        print "Next year, I will make $Eval{$SALARY*1.06} dollars\n";
        sub FETCH { $_[1] }     #  Identity function
        Next year, I will make 47700 dollars
        print "The square root of 2 is $Eval{sprintf("%.4f", sqrt(2))}\n";
        print "The employee's name is $Eval{$employee->name}\n";


Next Copyright © 2001 M. J. Dominus