Here's the output:#!/usr/bin/perl use strict; use warnings; yes_ampersand("yes\n"); no_ampersand("no\n"); sub foo { print $_[0]; } sub yes_ampersand { print $_[0]; &foo; } sub no_ampersand { print $_[0]; foo; }
yes yes no Use of uninitialized value in print at ampersands.plx line 9.
In reply to Re^3: What's so bad about &function(...)?
by creamygoodness
in thread What's so bad about &function(...)?
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |