lindex has asked for the wisdom of the Perl Monks concerning the following question:
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pointing a filehandle at a scalar or array ?
by davorg (Chancellor) on Jul 26, 2000 at 14:07 UTC | |
by jettero (Monsignor) on Jul 26, 2000 at 15:57 UTC | |
|
RE: pointing a filehandle at a scalar or array ?
by merlyn (Sage) on Jul 26, 2000 at 16:47 UTC | |
|
Re: pointing a filehandle at a scalar or array ?
by athomason (Curate) on Jul 26, 2000 at 14:18 UTC | |
by lindex (Friar) on Jul 26, 2000 at 14:51 UTC | |
|
RE: pointing a filehandle at a scalar or array ?
by jimt (Chaplain) on Jul 26, 2000 at 20:05 UTC | |
by chip (Curate) on Jul 27, 2000 at 01:29 UTC | |
|
A thnx to all of you
by lindex (Friar) on Jul 27, 2000 at 03:59 UTC |