text file: 1|paul 2|simon etc
Any suggestions or advice would be great, Thanksprint "Name:\n"; $file= <stdin>; open (FH, "names.txt") or die "$!"; while (<FH>) { if (m/\|$file$/) { #naturally this does not work print "$num_entry\n"; }
In reply to pattern match a name from stdin by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |