Adam_ has asked for the wisdom of the Perl Monks concerning the following question:
#!/Perl/bin/perl -w while ($command = <STDIN>) { if ($command eq "!1\n"){ $block = ''; open(TESTSCRIPT, 'ts1.pl'); while ($testLine = <TESTSCRIPT>) { $block = $block . $testLine; } $command = $block; } $result = eval $command; print $@; print "\t\t\t== " . $result; print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing /$\d/
by grep (Monsignor) on Jul 08, 2003 at 20:28 UTC | |
by Adam_ (Initiate) on Jul 09, 2003 at 08:04 UTC |