From 28cdc0d82c6159addc6d2a66449bc6bd2ef0bb71 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 24 May 2015 00:54:55 +0200 Subject: perl: remove subdir, not touched in 9 years --- perl/contrib/formfind | 193 -------------------------------------------------- 1 file changed, 193 deletions(-) delete mode 100644 perl/contrib/formfind (limited to 'perl/contrib/formfind') diff --git a/perl/contrib/formfind b/perl/contrib/formfind deleted file mode 100644 index 3ca8ea49f..000000000 --- a/perl/contrib/formfind +++ /dev/null @@ -1,193 +0,0 @@ -#!/usr/bin/env perl -# -# formfind.pl -# -# This script gets a HTML page on stdin and presents form information on -# stdout. -# -# Author: Daniel Stenberg -# Version: 0.2 Nov 18, 2002 -# -# HISTORY -# -# 0.1 - Nov 12 1998 - Created now! -# 0.2 - Nov 18 2002 - Enhanced. Removed URL support, use only stdin. -# - -$in=""; - -if($ARGV[0] eq "-h") { - print "Usage: $0 < HTML\n"; - exit; -} - -sub namevalue { - my ($tag)=@_; - my $name=$tag; - if($name =~ /name *=/i) { - if($name =~ /name *= *([^\"\']([^ \">]*))/i) { - $name = $1; - } - elsif($name =~ /name *= *(\"|\')([^\"\']*)(\"|\')/i) { - $name=$2; - } - else { - # there is a tag but we didn't find the contents - $name="[weird]"; - } - - } - else { - # no name given - $name=""; - } - # get value tag - my $value= $tag; - if($value =~ /[^\.a-zA-Z0-9]value *=/i) { - if($value =~ /[^\.a-zA-Z0-9]value *= *([^\"\']([^ \">]*))/i) { - $value = $1; - } - elsif($value =~ /[^\.a-zA-Z0-9]value *= *(\"|\')([^\"\']*)(\"|\')/i) { - $value=$2; - } - else { - # there is a tag but we didn't find the contents - $value="[weird]"; - } - } - else { - $value=""; - } - return ($name, $value); -} - - -while() { - $line = $_; - push @indoc, $line; - $line=~ s/\n//g; - $line=~ s/\r//g; - $in=$in.$line; -} - -while($in =~ /[^<]*(<[^>]+>)/g ) { - # we have a tag in $1 - $tag = $1; - - if($tag =~ /^