Home > Archive > PERL Beginners > August 2007 > IO::Scalar
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| I want to install IO::Scalar. However, I can't find it with the
Active Perl's Perl Package Manager. Do this module still exist?
| |
| Chas Owens 2007-08-28, 7:01 pm |
| On 8/28/07, Chris <cspears2002@yahoo.com> wrote:
> I want to install IO::Scalar. However, I can't find it with the
> Active Perl's Perl Package Manager. Do this module still exist?
They probably no longer package it because Perl no longer needs it:
#!/usr/bin/perl
use strict;
use warnings;
my $not_a_file = "this is\nnot\nreally a file";
open my $fh, "<", \$not_a_file
or die "could not open \$not_a_file:$!";
while (<$fh> ) {
chomp;
print "[$_]\n";
}
| |
| Chas Owens 2007-08-28, 7:01 pm |
| On 8/28/07, Chas Owens <chas.owens@gmail.com> wrote:
> On 8/28/07, Chris <cspears2002@yahoo.com> wrote:
>
> They probably no longer package it because Perl no longer needs it:
snip
Actually they do still provide it. It is part of the IO::Stringy
package. You should be able to say
ppm install io-stringy
to get it, but I wouldn't bother unless you have legacy code that uses it.
|
|
|
|
|