Print out the contents of @search and you will see that the back-slashes have been removed by interpolation.
You also have an off-by-one error in the line:
for (my $i = 0; $i <= $search_count; $i++) {
In reply to Re: I don't understand why I'm getting an "Use of uninitialized value" error
by jwkrahn
in thread I don't understand why I'm getting an "Use of uninitialized value" error
by TheBigAmbulance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |