[Catalyst] YAML Config
Ash Berlin
ash_cpan at firemirror.com
Tue Jul 24 14:25:45 GMT 2007
Oleg Pronin wrote:
> >I don't even know what those do. Why do you want them?
>
>
> &anchors are used to define an anchor on variable.
> *aliases are used to insert previously defined anchor's value.
>
> For example,
> root_dir: &root /very/long/path/to/root/dir
> root_dir2: *root
>
> print MyApp->config->{root_dir2}; # /very/long/path/to/root/dir
>
>
Good reason for using them.
Shame it appears nothing in perl supports them. If you want to use them
i suggest you submit a patch against the YAML module of your choice.
More information about the Catalyst
mailing list