Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Much cleaner to use a hash at the last level.

  • Loading branch information...
commit ca2fecb929163b2d9b634de3755d6219b416cc6a 1 parent 197bc41
Jay Hannah authored

Showing 1 changed file with 23 additions and 18 deletions. Show diff stats Hide diff stats

  1. +23 18 poisonbit/tt.pl
41 poisonbit/tt.pl
@@ -3,25 +3,29 @@
3 3
4 4 my @data = (
5 5 {
6   - 'name' => 'Koldo Echavarren ',
  6 + 'name' => 'Person1',
7 7 'projects' => {
8   - 'Gobierno de Navarra - Aplicaciones Comunicaci�n' => [
9   - 'GOBIERNO NAVARRA',
10   - 'Olatz Zamora',
11   - '0.6'
12   - ],
13   - 'Project 2' => [ 'foo', 'bar', 'baz'],
14   - },
  8 + 'Aplicaciones Comunicaci�n' => {
  9 + leader => 'leader 1',
  10 + client => 'client 1',
  11 + time => '0.6',
  12 + },
  13 + 'Project 2' => {
  14 + leader => 'foo',
  15 + client => 'bar',
  16 + time => 'baz',
  17 + }
  18 + },
15 19 'id' => 38
16 20 },
17 21 {
18   - 'name' => 'Adriana Ojuel',
  22 + 'name' => 'person2',
19 23 'projects' => {
20   - 'varios proyectos' => [
21   - 'CAN-JAVA (equipo fijo)',
22   - 'Joserra Diaz',
23   - '1'
24   - ]
  24 + 'varios proyectos' => {
  25 + leader => 'CAN-JAVA (equipo fijo)',
  26 + client => 'Client 2',
  27 + time => '1'
  28 + },
25 29 },
26 30 'id' => 0
27 31 }
@@ -39,11 +43,12 @@
39 43 User ID: [% user.id %]
40 44 User name: [% user.name %]
41 45 User work:
42   -[% FOREACH project_name IN user.projects.keys %]
  46 +[% FOREACH project_name IN user.projects.keys;
  47 + project = user.projects.$project_name; %]
43 48 Project name: [% project_name %]
44   - Project leader: [% user.projects.$project_name.0 %]
45   - Project client: [% user.projects.$project_name.1 %]
46   - Project time: [% user.projects.$project_name.2 %]
  49 + Project leader: [% project.leader %]
  50 + Project client: [% project.client %]
  51 + Project time: [% project.time %]
47 52 [% END -%]
48 53 [% END -%]
49 54

0 comments on commit ca2fecb

Please sign in to comment.
Something went wrong with that request. Please try again.