- or download this
$file = <FILE>;
- or download this
local $/ = undef;
$file = <FILE>;
- or download this
$file = join("", <FILE>);
- or download this
foreach $this_paragraph (@paras) {
....
}
- or download this
foreach my $this_paragraph (@paras) {
my @split_para = split(/:/, $this_paragraph);
...
print $this_paragraph;
}
}
- or download this
foreach my $this_paragraph (@paras) {
if( $this_paragraph =~ /^$KWD:/s ) {
...
# This works if the paragraph looks like 'KEYWORD: ...'
}
}
- or download this
foreach my $this_paragraph (@paras) {
if( $this_paragraph =~ /:$KWD\b/s ) {
...
# This works if the paragraph looks like '.... :KEYWORD ...'
}
}