Re: Using scalar instead of stream
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 21 Jan 2006 06:20:19 -0800
Daniel Kaplan wrote:
> If a module asks for a readable filehandle (input stream) as below, surely
> there is a way to use a scalar instead?
On what basis do you make that logical leap?
A module can only do what it was programmed to do.
> The module is looking for an email message, which I already have loaded into
> one string?
"The module"? Are you assuming there's only one? Why don't you give
us enough information to help you? What module are you using?
> $entity = $parser->parse(\*STDIN) or die "parse failed\n";
How does this relate to your statement above? There is no string here
to which you have loaded an email message.
Are you *ever* going to bother reading the Posting Guidelines for this
group? What is difficult about posting a short-but-complete script
that demonstrates your problem?
Paul Lalli
.
- Follow-Ups:
- Re: Using scalar instead of stream
- From: A. Sinan Unur
- Re: Using scalar instead of stream
- References:
- Using scalar instead of stream
- From: Daniel Kaplan
- Using scalar instead of stream
- Prev by Date: Re: mistake in my for
- Next by Date: Re: Simple REGEX-Question
- Previous by thread: Using scalar instead of stream
- Next by thread: Re: Using scalar instead of stream
- Index(es):
Relevant Pages
|