T
Tim Greenwood
Is it possible (and preferably simple) to undo a line input from STDIN
or any file handle? I want to do something like
$line = <STDIN>;
if ($line =~ $my_pattern) {
# process it all
} else {
# push the line back to be read by some other part of the program
}
or any file handle? I want to do something like
$line = <STDIN>;
if ($line =~ $my_pattern) {
# process it all
} else {
# push the line back to be read by some other part of the program
}