in reply to Re^2: curly braces around a lexical file handle
in thread curly braces around a lexical file handle
If that's true, you should be writing
print( { $filehandle } $some_data );
Running into problems from omitting those parens is far more likely than running into problem from omitting those curlies. Furthermore, omitting the curlies around the file handle expression when it's needed is likely to result in a compile-time error, whereas omitting parens can fail silently and subtly.
If the argument you posted is valid, then it's far more important for
to be written asprint $filehandle $some_data;
than for it to be written asprint($filehandle $some_data);
print { $filehandle } $some_data;
|
|---|