Home >> perlfunctions >>Perl function: evaleval() has two forms. The first takes a string, and treats it as Perl code. It compiles and executes it, returning whatever value is appropriate. If there is a fatal error, it sets the $@ variable. The other form is eval { CODE }. This executes a block of code in a fail-safe environment. If there are any fatal errors, the $@ is set, and the block is exited. A common use for this is:print "Give me a number: "; chomp(my $n = Perl functions
|
List of all perl functions Perl function : split Perl function: abs Perl function: chomp Perl function: chop Perl function: chr Perl function: crypt Perl function: hex Perl function: lc Perl function: lcfirst Perl function: length Perl function: oct Perl function: ord Perl function: shift
|