I apologize. I do use strict and warnings. That and any typos I have are because I do not have perl on this system and have to look at the other system where I test it to type it here.
I would agree that the syntax I have is not what I want. As I mentioned in my reply to stevieb, a normal AoH syntax would have been better.
If I understand what you have, you get the strings into $excerpts[$i], then replace those strings with hashes in the
step. This unfortunately gets rid of the original string in each array element. I could get around this by doing$excerpts[$i] = { fpart=>$1, bpart=>$3 };
if I first get the content into $value before overwriting it.$excerpts[$i] = { fpart=>$1, bpart=>$3, content=>$value };
Thanks
In reply to Re^4: Adding hashes to already existing array
by ExReg
in thread Adding hashes to already existing array
by ExReg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |