Help for this page

Select Code to Download


  1. or download this
    open (EVENTS_FILE, 't1Vevents.txt');
    
  2. or download this
    open EVENTS_FILE, '<', 't1Vevents.txt' or die "Cannot open 't1Vevents.
    +txt' $!";
    
  3. or download this
    @EVENT_ARRAY = <EVENTS_FILE>;
    
  4. or download this
    chomp( my @EVENT_ARRAY = <EVENTS_FILE> );
    
  5. or download this
    foreach $event_line (@EVENT_ARRAY)
          {
          chomp;
    
  6. or download this
    foreach my $event_line ( @EVENT_ARRAY )
          {
          chomp $event_line;
    
  7. or download this
          if ($event_line =~ m/\s*d1/i)
    
  8. or download this
             @array = (@array,$d1_value,$d2_value);
    
  9. or download this
             push @array, $d1_value, $d2_value;
    
  10. or download this
    use warnings;
    use strict;
    ...
    
    print @array;