projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1446e94
)
Eliminate $`,$' to avoid runtime penalty
Perl 5 Porters [Wed, 1 May 1996 04:10:21 +0000 (
04:10
+0000)]
lib/dotsh.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/dotsh.pl
b/lib/dotsh.pl
index
8e9d962
..
877467e
100644
(file)
--- a/
lib/dotsh.pl
+++ b/
lib/dotsh.pl
@@
-53,8
+53,8
@@
sub dotsh {
open (_SH_ENV, "/tmp/_sh_env$$") || die "Could not open /tmp/_sh_env$$!\n";
while (<_SH_ENV>) {
chop;
- /=/;
- $ENV{$`} = $';
+ m/^([^=]*)=(.*)/s;
+ $ENV{$1} = $2;
}
close (_SH_ENV);
system "rm -f /tmp/_sh_env$$";