in reply to Strange read file behaviour

The purpose of FindBin is: Locate the full path to the script bin directory to allow the use of paths relative to the bin directory. See FindBin.

What is the purpose of "my $ref2Test=\$test;"