in reply to Re^2: How to swap rows with columns?
in thread How to swap rows with columns?
Eventually, I decided I would not write code like that, fascinating as it is - it turns out to be just a way to avoid declaring a local variable. It works just as well replacing all instances of that and "$_'_" with "$Column_Index", and becomes a lot more readable ("local *_'_" being replaced by "my $Column_Index" helps by functioning without resorting to "no strict 'refs'").
I'm hoping this node helps other monks who may not have unraveled "_'_".
I'm also curious as to how this would be written in idiomatic perl6.
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to swap rows with columns?
by BrowserUk (Patriarch) on Oct 10, 2007 at 05:24 UTC | |
by ikegami (Patriarch) on Oct 10, 2007 at 05:48 UTC | |
Re^4: How to swap rows with columns?
by ikegami (Patriarch) on Oct 10, 2007 at 05:42 UTC | |
Re^4: How to swap rows with columns?
by jdporter (Paladin) on Oct 10, 2007 at 05:03 UTC |