in reply to u+ fails to force scalar context to empty list assignment: +( () = ... )
unary + doesn't do the job as tybalt89 shows.print "".( () = /;/g ); #prints "3"
why not just?:
print tr/;//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: u+ fails to force scalar context to empty list assignment: +( () = ... )
by ikegami (Patriarch) on Mar 12, 2019 at 00:16 UTC | |
by Marshall (Canon) on Mar 12, 2019 at 00:30 UTC | |
by LanX (Saint) on Mar 12, 2019 at 01:24 UTC |