Skip to content

Instantly share code, notes, and snippets.

@sharifulin
Created June 16, 2009 10:11
Show Gist options
  • Save sharifulin/130628 to your computer and use it in GitHub Desktop.
Save sharifulin/130628 to your computer and use it in GitHub Desktop.
Real Perl PHP warn
function warn($msg) { fwrite(STDERR, substr($msg, -1) == "\n" ? $msg : $msg.' at '.__FILE__.' line '.__LINE__.".\n"); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment