in reply to Opening files with a $ the name
Remember, there is no variable interpolation in single-quoted strings. (Strange, though, that "catalog.\$test" didn't work for you. Try using -w and strict.)perl -w use strict; local *INPUT; open (INPUT, 'catalog.$test') || die "Error: $!\n"; print while (<INPUT>); close INPUT || die "Worse Error: $!\n";
|
|---|