No, that's normal. Yes, things may/will change in perl 6 (that is a tautology). Compare references using the numeric equality operator. See Re: Why isn't ->can() curried? and Re: Why isn't ->can() curried? for more on comparing references. [Added adrianh has an interesting observation regarding this in Re^3: Comparing references to sub's.]
_detect_type('unzipped.txt') == \&open_unzipped _detect_type('zipped.zip') == \&open_zipped
In reply to Re^2: Comparing references to sub's
by diotalevi
in thread Comparing references to sub's
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |