in reply to Re: Fence vs. Posts
in thread Fence vs. Posts
you wrote: "I would have used is map"
{@arr[$_,$_+1]} 0..$#arr-1Thanks! this is just the sort of thing I was seeking . . . new knowledge. I was unaware of $_+1 . Also later you noted:
"The reason your creation of the %info hash isn't working in the original code is that you're not dereferencing the pairs."
Nice, I thought I was close to getting it to work, this did the trick.
As the lyric goes . . . I am hip to your timely tip!! Thannk again.
However, the while pare of the code below looks like Devilry I will have to spend more time with it to figure it out
local $_ = join "\n", @trip; printf "%15s to %-15s\n", $1, $2 while /^(.*)\n(?=(.*))/gm;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fence vs. Posts
by Veltro (Hermit) on Jun 09, 2018 at 15:59 UTC | |
|
Re^3: Fence vs. Posts
by rodinski (Novice) on Jun 14, 2018 at 13:15 UTC |