in reply to Re^4: Can't get the desired output..
in thread Can't get the desired output..
If you want to print out "Cobray" if the string contains "Cobray", then why don't you just do that? Change your print "$name" to print "Cobray".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Can't get the desired output..
by astronogun (Sexton) on May 02, 2012 at 10:19 UTC |
In Section
Seekers of Perl Wisdom