aboutsummaryrefslogtreecommitdiff
path: root/bin/uri
diff options
context:
space:
mode:
Diffstat (limited to 'bin/uri')
-rwxr-xr-xbin/uri6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/uri b/bin/uri
index ca26326..bbe67ef 100755
--- a/bin/uri
+++ b/bin/uri
@@ -74,6 +74,8 @@ if ($opts{h}) {
my $fn = $opts{d} ? \&URI::Escape::uri_unescape : \&URI::Escape::uri_escape;
-for (@ARGV ? @ARGV : <STDIN>) {
- say &$fn($_);
+$|++;
+
+while ($_ = (@ARGV ? @ARGV : <STDIN>)) {
+ print &$fn($_);
}