in reply to Re: appending to a file
in thread appending to a file
John Doe\n
And your regex: /^\Q$student\E$/ will never match any line in that file, because it doesn't allow for the trailing newline. Thus, $student will always get printed, even if the name already exists. F
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: appending to a file
by Anonymous Monk on Feb 27, 2004 at 05:41 UTC | |
by Anonymous Monk on Feb 27, 2004 at 17:06 UTC |