in reply to Re^5: RFC: (DRAFT Tutorial) A Gentle Introduction to Perl 6
in thread RFC: (DRAFT Tutorial) A Gentle Introduction to Perl 6

Better yet ... just use YAML.

use YAML; use Data::Dumper; print Dumper Load( do{ local $/; <DATA> } ); __DATA__ --- 1234: first: Sam hobbies: - hunting - Perl Munging job: gunsmith last: Brown 2316: first: Jane hobbies: - Python open source - bowling job: financial analyst last: Doe

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^7: RFC: (DRAFT Tutorial) A Gentle Introduction to Perl 6
by BrowserUk (Patriarch) on Aug 06, 2015 at 18:32 UTC
Re^7: RFC: (DRAFT Tutorial) A Gentle Introduction to Perl 6
by u65 (Chaplain) on Aug 06, 2015 at 21:25 UTC

    Good idea. My example program is a form I've used for years and it predates YAML, so I haven't really thought of using it until recently. I also didn't know at the time if Perl 6 had the module available yet, but it does.