in reply to substr odd behavior with list arguments
I care because I'd like to do this: substr($string,a_subroutine_call_that_returns_offset_and_length(@some_args))
You can get Perl to ignore the prototype (that was explained by choroba) on Perl 5.16 and up via: &CORE::substr("abcdefg",@a)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: substr odd behavior with list arguments
by LanX (Saint) on Mar 22, 2021 at 16:33 UTC | |
|
Re^2: substr odd behavior with list arguments
by wfischer (Novice) on Mar 22, 2021 at 16:29 UTC | |
by haukex (Archbishop) on Mar 22, 2021 at 16:46 UTC |