On Sat, 9 Nov 2013 19:03:00 +0530
Unknown User <knowsuperunkn...@gmail.com> wrote:

> Hi,
> 
> I have a variable that has a function in it, eg: my $newtime =
> "time() + 30";
> How can i use it in code so that it always returns  time() + 30 when
> it is called?

See `perldoc -f eval`

Note that using strings with eval could leave your code open to code
injection, a big security risk. Use with caution. Or better yet, don't
use it at all.


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to