in reply to Matching patterns in condisional statements

What does print $head print? Rather than just print the string I'd use Data::Dump or Data::Dumper (with $Data::Dumper::Useqq set to true) to display it, to see potential invisible characters

Replies are listed 'Best First'.
Re^2: Matching patterns in condisional statements
by smturner1 (Sexton) on Jul 05, 2017 at 17:23 UTC

    It was so I could see that the first line was being stored in the $head variable.