- or download this
HEADER:
while (<STDIN>) {
...
if /^2/;
print "--> $_";
}
- or download this
HEADER:
while (my $line = <STDIN>) {
...
if '2' eq substr $line, 0, 1;
print "--> $line";
}
- or download this
process_file_header();
process_file_participants_list();
process_file_contract_details();
- or download this
given (determine_context()) {
when ( $FOO ) { process_foo(); }
...
when ( $BAZ ) { woo_ha(); }
default { confused(); }
}