- or download this
unless ( open( FILE, "name_of_file" ) ) {
die "Could not open file for reading\n";
}
- or download this
while (<FILE>) {
if ($_ =~ /^(maintenance_mode)\s([\w,=]*)$/) {
- or download this
$var =~ /whatever/;
- or download this
$_ =~ /whatever/;
- or download this
/whatever/;
- or download this
for ($foo) {
s/^"//;
...
}
# or also:
# s/^"//, s/"$//, s/\W+/-/ for $foo;
- or download this
$hash{$1} = $2;
}
}