projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Re: Named-capture regex syntax
[p5sagit/p5-mst-13.2.git]
/
perlsh
diff --git
a/perlsh
b/perlsh
index
2b2cccd
..
63662d6
100644
(file)
--- a/
perlsh
+++ b/
perlsh
@@
-8,7
+8,7
@@
$/ = "\n\n"; # set paragraph mode
$SHlinesep = "\n";
-while ($SHcmd = <>) {
+while (defined($SHcmd = <>)) {
$/ = $SHlinesep;
eval $SHcmd; print $@ || "\n";
$SHlinesep = $/; $/ = '';