Help for this page

Select Code to Download


  1. or download this
    #! perl -w scipt
    
  2. or download this
    use strict;
    use warnings;
    
  3. or download this
    my @files;
    my @List_of_commands; 
    my $line;
    my $file;
    
  4. or download this
    while (<*.sql>) {
      push (@files,$_);
    }
    
  5. or download this
    my @files=<*.sql>;
    
  6. or download this
    foreach (@files) {
    
  7. or download this
    for (<*.sql>) {  # I never use C<foreach> ;-)
    
  8. or download this
      $file = $_;
    
  9. or download this
    for my $file (<*.sql>) {  # I still prefer C<for> orver C<foreach>!!
    
  10. or download this
      open (FILE, "<$file");
    
  11. or download this
      while (<FILE>){
    
        my $line = $_;
    
  12. or download this
        if $line not =~ (/INSERT INTO Message_pool)/{
          #Do nothing
        }
    
  13. or download this
    #!/usr/bin/perl
    # UNTESTED!
    ...
    }
    
    __END__
    
  14. or download this
    #!/usr/bin/perl -ln
    
    ...
    print "whatever: $1";
    
    __END__