Hello Everyone,

If I have a file that contains this,

########################test3.txt##############################################################
wilma

wimagren was here

twilma was type wilma

wilma

wilma

wilma

twowilmase
##############################################################################################

and i have a perl script that contains this,

###############perlname.pl####################################################################
#!/usr/bin/perl


while(<>){ chomp; if(/wilma\s+/){ print "wilma was mentioned\n"; } }

#########################################################################################

and I type, perl -w perlname.pl test3.txt
shouldnt the output be, "wilma was mentioned \n", 7 times? My output file only mentions it once. What am I doing wrong?


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to