« auto/share/dist/Nes/examples/tutorial/script_03.pl
↑ Summary
auto/share/dist/Nes/examples/nesblog/scripts/examples/perl.pl »
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use Nes; | ||
| 4 | my $nes = Nes::Singleton->new(); | ||
| 5 | |||
| 6 | my %tags; | ||
| 7 | my $table = [ | ||
| 8 | { | ||
| 9 | name => 'One', | ||
| 10 | email => 'one@example.com', | ||
| 11 | }, | ||
| 12 | { | ||
| 13 | name => 'Two', | ||
| 14 | email => 'two@example.com', | ||
| 15 | }, | ||
| 16 | { | ||
| 17 | name => 'Three', | ||
| 18 | email => 'three@example.com', | ||
| 19 | } | ||
| 20 | ]; | ||
| 21 | |||
| 22 | $tags{'users'} = $table; | ||
| 23 | |||
| 24 | $nes->out(%tags); | ||
| 25 | |||
| 26 | 1; |