- or download this
# old STDIN: 1 2 3
while (<STDIN>) {
if (some condition) unshift "hi test test" to STDIN
# new STDIN hi test test 1 2 3
}
- or download this
while (<STDIN>) {
if (some condition) $_ = "hi test test " . $_;
# ...
}
- or download this
# supposing that @ARGV contains file name(s) to be filtered and proces
+sed:
...
# prefixes and other source code filtering are already done
# ...
}