WaZaRWiki : PerlTips

GaelReignier :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register :: Hosted by: eNiX

Revision [104]

This is an old revision of PerlTips made by GaelReignier on 2008-05-29 19:17:58.
ITTips


How to use CPAN?


CPAN install module: to install a module

How to run a bash command in a Perl program: http://perl.about.com/od/programmingperl/qt/perlexecsystem.htm
system("myCommand"); i.e.: system("/bin/ls");

How to get the file size: http://www.perlmeme.org/faqs/file_io/filesize.html
$size = (-s 'ddserver.log');
print $size;


String comparison

if ($ticketList ne )
ne: non equal
eq: equal

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.3663 seconds