Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- $foo = 'one';
- %tests = (
- "$foo eq 'one'" => 'this is test one',
- "$foo eq 'two'" => 'this is test two'
- );
- foreach $test ( keys %tests ) {
- if ( $$test ) { print "yes\n"; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement