Hello Perl Experts, Can anyone show me why the following script will only search and print "What kind of computer is this?" but not the rest of other two items; ie "has been working very hard." & "Since then," These are sentences within a text paragraph file which I'm trying to capture and display to standard out. Many Thanks:)
while(<>) { if (/\bhas been working very hard.\b/){ $one=; } if (/\bWhat kind of computer is this?\b/){ # If it finds "people" then assign var. $two="What kind of computer is this?"; } if (/\bSince then,\b/){ # If it finds etc/etc then assign var. $three="Since then,"; } } $inputs = "$one $two $three"; print "$inputs \n"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]