Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Why don't file handles have sigils?

by ikegami (Patriarch)
on Jul 14, 2014 at 15:31 UTC ( [id://1093565] : note . print w/replies, xml ) Need Help??


in reply to Why don't file handles have sigils?

Technically, they do. When you do

open(FOO, '>', ...) or die $!; print(FOO "string\n");
you are using a shortcuts for
open(*FOO, '>', ...) or die $!; print({ *FOO } "string\n");

*FOO is a typeglob, and typeglob use the "*" sigil except when made optional by certain operators.