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