in reply to Re: Interchanging hash values
in thread Interchanging hash values
With a couple of additions, that works:)
sub insert_end_relative { my ($string, $pos, $insert) = @_; substr ($string, (-$pos) || length $string, 0) = $insert }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Interchanging hash values
by Abigail-II (Bishop) on Apr 20, 2003 at 01:51 UTC | |
by BrowserUk (Patriarch) on Apr 20, 2003 at 02:27 UTC |