3 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/perl -w use strict; use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; my $von = 087; my $bis = "; @ARGV = ('text.txt'); while (<>) { if (m/($von$bis)/o) { print "Text gefunden in: ", $ARGV, "::$1<br/>\n"; }}
1 2 3 4 5 6 7 8 9 10 11 12
my $von = '087'; my $bis = q{"}; while (<DATA>) { if (m/$von(.*?)$bis/) { print "Match $1 gefunden \n"; } } __DATA__ "08749-6948452 W-Germany" "086948452 W-Germany"
3 Einträge, 1 Seite |