This may sound like a pretty dumb question buts its something
that I have been wondering about. Is it possible to point
a glob at a scalar or array.
Like if I wanted todo maybe:
So basicly reading $string like a filehandle.$string = "this is a test"; # ... code to point *FD at $string ... while(<FD>) { print $_,"\n"; }
In reply to pointing a filehandle at a scalar or array ? by lindex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |