in reply to Re: why avoid & on function call
in thread why avoid & on function call
Uncommenting the last last print line would make the source unparsable with#!/usr/bin/perl use warnings; print "", frob(); # 12 print "", frob; # frob use strict; print "", frob(); # 12 # print "", frob; sub frob { 12 }
Bareword "frob" not allwoed while "strict subs" in use
Updated: as shown in the text, thanks kcott.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: why avoid & on function call
by kcott (Archbishop) on Dec 27, 2020 at 19:14 UTC | |
|
Re^3: why avoid & on function call
by LanX (Saint) on Dec 27, 2020 at 17:59 UTC |