If the print only works when it contains a \n, you might be suffering from output-buffering. See here in the Perl Cookbook for a detailed discussion of that topic.
HTH, RataIn reply to Re: Printing the variable makes the next match code work. Why?
by Ratazong
in thread Printing the variable makes the next match code work. Why?
by scaryfast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |