in reply to Does the experimental builtin::stringify() do anything that scalar() doesn't ?
Ouput:#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use builtin qw{ stringify }; use Devel::Peek qw{ Dump }; my $v = 100; for (sub { scalar shift }, sub { stringify shift }) { $_->($v); Dump $v; }
Built-in function 'builtin::stringify' is experimental at 2.pl line 10 +. SV = IV(0xf57500) at 0xf57510 REFCNT = 1 FLAGS = (IOK,pIOK) IV = 100 SV = PVIV(0xf20db0) at 0xf57510 REFCNT = 1 FLAGS = (IOK,pIOK,pPOK) IV = 100 PV = 0xf09d20 "100"\0 CUR = 3 LEN = 16
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Does the experimental builtin::stringify() do anything that scalar() doesn't ?
by syphilis (Archbishop) on Apr 05, 2024 at 11:43 UTC | |
by choroba (Cardinal) on Apr 05, 2024 at 11:57 UTC | |
by syphilis (Archbishop) on Apr 06, 2024 at 01:48 UTC | |
by davido (Cardinal) on Apr 05, 2024 at 18:11 UTC | |
by NERDVANA (Priest) on Apr 12, 2024 at 07:34 UTC | |
by choroba (Cardinal) on Apr 12, 2024 at 07:54 UTC |