in reply to Re^2: What's so bad about &function(...)?
in thread What's so bad about &function(...)?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What's so bad about &function(...)?
by japhy (Canon) on Dec 07, 2005 at 20:31 UTC | |
by creamygoodness (Curate) on Dec 07, 2005 at 22:02 UTC | |
by Perl Mouse (Chaplain) on Dec 08, 2005 at 17:18 UTC |