in reply to Re^2: Ampersands and sub speed
in thread Ampersands and sub speed
Closer, but they're still not the same. This code works,
but if you change it like this, it breaks:sub f { &g; print @_; } sub g { $_[0] .= "o, w"; push @_, "orld\n"; } +f($x = "hell");
sub f { g(@_); print @_; } sub g { $_[0] .= "o, w"; push @_, "orld\n"; + } f($x = "hell");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Ampersands and sub speed
by diotalevi (Canon) on Oct 15, 2005 at 17:43 UTC |