X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FCatalystBasics.pod;h=43f6344b2588fe99b52c814502bc3866d55d9559;hb=7e5eb02c6b73fe449f282d5ac54f319463a46c3c;hp=e20e45359b57eb8cc4d8da89a042a2dcec613f1f;hpb=a63e6e6726445baeea08771316b3ce44a495a96a;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod index e20e453..43f6344 100644 --- a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod @@ -806,10 +806,10 @@ Then open C in your editor and enter: [% # First initialize a TT variable to hold a list. Then use a TT FOREACH -%] [% # loop in 'side effect notation' to load just the last names of the -%] - [% # authors into the list. Note that we are making a bogus assignment to -%] - [% # the 'xx' vbl to avoid printing the size of the list after each push. -%] + [% # authors into the list. Note that we make a bogus assignment to the -%] + [% # 'unused' vbl to avoid printing the size of the list after each push. -%] [% tt_authors = [ ]; - xx = tt_authors.push(author.last_name) FOREACH author = book.authors %] + unused = tt_authors.push(author.last_name) FOREACH author = book.authors %] [% # Now use a TT 'virtual method' to display the author count in parens -%] ([% tt_authors.size %]) [% # Use another vmethod to join & print the names with comma separators -%]