in reply to revision number

I am looking for module to extract the version # from other files or module files without the need to look threw the file i try to parse it out; (there are some odd files).
open (my $file,'<','file path'); my $Version= ver($file||'file path');

Replies are listed 'Best First'.
Re^2: revision number
by jasonk (Parson) on Sep 02, 2008 at 17:40 UTC

    If all you are trying to do is parse it the same way that ident does, then you don't need to get very fancy, the parser in ident isn't all that intelligent, it just looks for things between the delimiters. I usually just do it from the command line with ack...

    ack -o '\$Revision.*?\$'

    www.jasonkohles.com
    We're not surrounded, we're in a target-rich environment!