some perl keywords


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  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

You need to login to post a comment.