[Catalyst] OT nitpickery (was: silly question ...)
A. Pagaltzis
pagaltzis at gmx.de
Sat Apr 22 16:34:34 CEST 2006
* John Beppu <john.beppu at gmail.com> [2006-04-22 16:10]:
> On 4/22/06, Daniel McBrearty <danielmcbrearty at gmail.com> wrote:
> > ... how do I know what version of cat I have? I thought
> > catalyst.pl -V or something, but that isn't it. look in
> > header files?
>
> perl -MCatalyst -e 'print "$Catalyst::VERSION\n"';
More generically, `Foo->VERSION`, and if you use `-l` you can get
rid of some line noise:
perl -MCatalyst -le'print Catalyst->VERSION'
Not that it matters much in this particular case.
(I’ve often though it would be nice if perl had a switch like
`-n`/`-p` that wrapped the code in `print do { ... };`… it would
be very handy for using perl as a cmdline calculator too.)
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst
mailing list