projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1022b15
)
Rewind exhausted globs before attempting a read
Peter Rabbitson [Mon, 4 May 2009 06:37:06 +0000 (06:37 +0000)]
(on a side note all this IO::Scalar business is just silly, not touching because a rewrite is imminent anyway)
lib/SQL/Translator.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator.pm
b/lib/SQL/Translator.pm
index
e089e70
..
99e250d
100644
(file)
--- a/
lib/SQL/Translator.pm
+++ b/
lib/SQL/Translator.pm
@@
-318,6
+318,7
@@
sub data {
$data = join '', @$data;
}
elsif (isa($data, 'GLOB')) {
+ seek ($data, 0, 0) if eof ($data);
local $/;
$data = <$data>;
}