[Catalyst] YAML Config
Oleg Pronin
syber.rus at gmail.com
Tue Jul 24 14:15:45 GMT 2007
>
> >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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070724/19a13=
31d/attachment.htm
More information about the Catalyst
mailing list