4 ms·
Or for any scripting language, use you can use strace. e.g. to find CGI.pm in perl: $ strace -e open perl -MCGI -e exit 2>&1 > /dev/null | grep CGI.pm | sed
by jbert 16y ago
Or for any scripting language, use you can use strace.
e.g. to find CGI.pm in perl:
$ strace -e open perl -MCGI -e exit 2>&1 > /dev/null | grep CGI.pm | sed -e 's/",.$//' -e 's/^."//'
/usr/share/perl/5.10/CGI.pm
Linux specific (use 'truss' on Solaris). I don't think OSX had strace like this last time I looked, but I assume dtrace could do a similar job if there isn't a more specific tool?
[Edit - there are literal asterisk chars in the above after the '.' chars in the regex, but I can't see a way to include them in a HN post (backslash escaping or HTML entities don't work)?]
- deleted 16y ago[deleted]