Think about Loose Coupling | |
PerlMonks |
Re: if statement based on HTTP_REFERRERby Athanasius (Archbishop) |
on Apr 09, 2015 at 17:18 UTC ( [id://1122975]=note: print w/replies, xml ) | Need Help?? |
Hello Jesse Smith, Another point: Please note that it is both simpler and safer to avoid code duplication whenever possible:
(Code untested, and with suggested improvements included: chomp instead of chop, the 3-argument form of open, a lexical filehandle, and testing for file open and close errors.) Hope that helps,
In Section
Seekers of Perl Wisdom
|
|