For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2004 > Re: Code in Variable ausführen?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Code in Variable ausführen?
Jenda Krynicky

2004-07-23, 8:56 am

From: "Bastian Angerstein" <ang@nmc-m.dtag.de>
> is it possible to execute code that is within a var?
>
> like:
>
> $var =3D 'print "Hallo Welt\n"';
>
> I had seen something like that in compination with eval...
>
> but I can´t remeber where and I can´t find that code anymore.


Run
perldoc -f eval

HTH, Jenda
=3D=3D=3D=3D=3D Jenda@Krynicky.cz =3D=3D=3D http://Jenda.Krynicky.cz =3D=3D=
=3D=3D=3D
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com