Home Index

1  Programming

2  Bash

+ Escape String

+ Large Files

+ Matrix

+ Options

+ Read File

+ Runtime

+ Specified Length

+ System Info

+ Tools

# Add debug after every Perl subroutine
function adddebug()
{
  sed -i '/^sub/ a\open(FILE,">>/tmp/kevin.txt"); print FILE __LINE__ . ":" . (caller(0))[3] . "\\n"; close(FILE);' $1  
}

Copyright © 1997-2012 Kevin T. Duraj, All rights reserved
Agoura Hills, California -  Saturday, 19 May 2012