Re: Command line perl to stat a file

2012-02-10 Thread Kevin Spencer
On Fri, Feb 10, 2012 at 10:52 AM, Harry Putnam wrote: > > But these command line attempts fail: > > (all on one line) >  perl  -e 'my ($seven, $nine) = >    (stat('./SweetwatterPk-016.jpg'))[7, 9]; >        print "$seven and $nine"' > > output: >  syntax error at -e line 1, near "stat(." >  Search

Re: Command line perl to stat a file

2012-02-10 Thread Rob Dixon
On 10/02/2012 17:52, Harry Putnam wrote: This script: --- 8< snip -- 8< snip -- 8 Something like this perhaps? perl -e "print join ' and ', (stat shift)[7,9]" ./SweetwaterPk-016.jpg But I would think the modification time (stat 9) wouldn't be of much use without format

Command line perl to stat a file

2012-02-10 Thread Harry Putnam
This script: --- 8< snip -- 8< snip -- 8http://learn.perl.org/

Re: No documentation found for perldoc

2012-02-10 Thread Shawn H Corey
On 12-02-10 11:26 AM, casandra riera ribas wrote: Hi, I have some (probably very stupid) problem when trying to search in perldoc in my computer (MacOSX 10.7.2), see: I would say that your Perl documentation is missing. On Linux, some distros come without it. I know how to load it in Debian b

No documentation found for perldoc

2012-02-10 Thread casandra riera ribas
Hi, I have some (probably very stupid) problem when trying to search in perldoc in my computer (MacOSX 10.7.2), see: maccasandra:~ mcasandrariera$ perldoc perltoc No documentation found for "perltoc". maccasandra:~ mcasandrariera$ perldoc List::Util ##this worked maccasandra:~ mcasandrariera$ p