in reply to What is wrong with variable?
if( $line =~ /^Subject: `(.*)`/ ){ system(`$1`); last }
I hope that's an extract from a script that does some extract checking, because if you're blindly executing commands that come in on subject lines to emails, you are setting yourself up for some major hurt. I've seen random spam come in with backquotes around the subject body.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What is wrong with variable?
by w3b (Beadle) on Mar 19, 2006 at 04:35 UTC | |
by CountZero (Bishop) on Mar 19, 2006 at 14:18 UTC |
In Section
Seekers of Perl Wisdom