in reply to Re^3: testing a croak
in thread testing a croak
.#!/usr/bin/perl -w use stritct; my $c1 = 'system("touch /tmp/test1.txt")'; my $c2 = 'system("touch /tmp/test2.txt")'; #used as string (Dangerous!!!) eval $c1; #used as block (ok) eval {$c2}; # <- gives a useless use of private variable in void cont +ext.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: testing a croak
by Mutant (Priest) on Jan 19, 2006 at 09:37 UTC | |
by ysth (Canon) on Jan 19, 2006 at 12:08 UTC |