May not be exactly what your looking for, but I'm currently doing some work parsing the RAW whois database files (Which you can download in their complete form, from ftp://ftp.ripe.net/ in the 'ripe/database' directory)
Like you I wanted to filter out the disclaimers, but I have different needs, mostly the fact that I'm preprocessing the files before feeding them to a database script to be inserted into a database.
Anyway, I'm using the following command line to pre filter the plain text database files:
cat ripe.db.as-block | grep -v '^\s*#' | grep -v '^remarks:\s*\*'
I guess following from that, you could pipe the output into your perl script, or write it to a new file using the > operator, then process that new file with your perl script.
This will also work on windows using the GnuWin32 toolset from sourceforge, which gives you windows compatible command line binaries that mirror their linux counter parts, but you will need to tweak the quotes, mostly from ' to "
as an example of what it strips:
this....
#
# The contents of this file are subject to
# RIPE Database Terms and Conditions
#
# http://www.ripe.net/db/support/db-terms-conditions.pdf
#
as-block: AS1877 - AS1901
descr: RIPE NCC ASN block
remarks: These AS Numbers are further assigned to network
remarks: operators in the RIPE NCC service region. AS
remarks: assignment policy is documented in:
remarks: <http://www.ripe.net/ripe/docs/asn-assignment.html>
remarks: RIPE NCC members can request AS Numbers using the
remarks: form available in the LIR Portal or at:
remarks: <http://www.ripe.net/ripe/docs/asnrequestform.html>
org: ORG-NCC1-RIPE
admin-c: DUMY-RIPE
tech-c: DUMY-RIPE
mnt-by: RIPE-DBM-MNT
mnt-lower: RIPE-NCC-HM-MNT
changed: unread@ripe.net 20000101
source: RIPE
remarks: ****************************
remarks: * THIS OBJECT IS MODIFIED
remarks: * Please note that all data that is generally regarded as personal
remarks: * data has been removed from this object.
remarks: * To view the original object, please query the RIPE Database at:
remarks: * http://www.ripe.net/whois
remarks: ****************************
Ends up as this:
as-block: AS1877 - AS1901
descr: RIPE NCC ASN block
remarks: These AS Numbers are further assigned to network
remarks: operators in the RIPE NCC service region. AS
remarks: assignment policy is documented in:
remarks: <http://www.ripe.net/ripe/docs/asn-assignment.html>
remarks: RIPE NCC members can request AS Numbers using the
remarks: form available in the LIR Portal or at:
remarks: <http://www.ripe.net/ripe/docs/asnrequestform.html>
org: ORG-NCC1-RIPE
admin-c: DUMY-RIPE
tech-c: DUMY-RIPE
mnt-by: RIPE-DBM-MNT
mnt-lower: RIPE-NCC-HM-MNT
changed: unread@ripe.net 20000101
source: RIPE
The trick to the filtering is using a reverse grep that's the '-v' in the command line, what it essentially says is let every line pass EXCEPT for those that match the pattern, as opposed to it's normal invocation, where it's used to select wanted lines.
If you have extra criteria you want to filter out before processing, then all you need to do is just pipe more inverted grep commands onto the end using the pipe character.