in reply to Preparing data for Template
Hi,
"I'm not sure when list_frames is supposed to get called..."
It won't get called unless you call it ;-)
This creates a reference ...'frames' => \&list_frames,
To simply call the sub you just want:
'frames' => list_frames(),
See also: https://www.oreilly.com/library/view/advanced-perl-programming/1565922204/ch04.html
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Preparing data for Template
by Bod (Parson) on Dec 31, 2020 at 00:21 UTC | |
by pryrt (Abbot) on Dec 31, 2020 at 00:51 UTC | |
by Bod (Parson) on Dec 31, 2020 at 11:05 UTC | |
by hippo (Archbishop) on Dec 31, 2020 at 11:47 UTC | |
by Bod (Parson) on Dec 31, 2020 at 12:41 UTC | |
| |
by GrandFather (Saint) on Jan 01, 2021 at 09:14 UTC | |
by Bod (Parson) on Jan 01, 2021 at 13:48 UTC | |
|
Re^2: Preparing data for Template
by Bod (Parson) on Dec 31, 2020 at 11:17 UTC |