Posted By

archlight on 01/04/09


Tagged

perl keywords


Versions (?)

some perl keywords


 / Published in: Perl
 

  1. scalar @wattage returns size of array
  2.  
  3. exists $dimA[0] returns value of first element of dimA exists
  4.  
  5. defined $dimA[0] returns bool whether dimA[0] is defined
  6.  
  7. switch statement can be used when use Switch;
  8. switch($key)
  9. {
  10. case '' { }
  11.  
  12. }
  13. foreach $line (<INFILE>) {}
  14. foreach $value (@array) {}

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: chorny on January 13, 2011

given/when work without Switch.pm

You need to login to post a comment.