View Single Post
Old 25th November 2009, 14:28
rjamesd rjamesd is offline
Join Date: Aug 2007
Posts: 35
Thanks: 3
Thanked 4 Times in 3 Posts
Question Want Perl equivalent of linux strings command to extract strings from binary file

I'm looking for a Perl function that does the same thing as the Linux strings command.

The strings command will output a list of strings contained in any file, including a binary file that has strings embedded with in.

Regular expressions don't seem to work very well (or at all) with searching for strings in binary files.

I've searched here already but not found answers.

I want a Perl equivalent as I want to make my Perl code platform independent. If I call strings from Perl then I have made my code dependent on the strings command being available from the underlying operating system.
Reply With Quote
Sponsored Links