perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Error installing a module - what do I do?         


Author: Yitzle
Date: Jan 8, 2008 21:21

I tried running install Devel::Symdump in the CPAN shell and I got an
error writing the makefile:
Writing Makefile for Devel::Symdump
-- NOT OK
Um... What do I do?

--------------------------- COMPLETE HISTORY ----------------------
cpan> install Devel::Symdump
CPAN: Storable loaded ok
Going to read /bin/.cpan/Metadata
Database was generated on Tue, 08 Jan 2008 20:40:18 GMT
Running install for module Devel::Symdump
Running make...
Show full article (1.69Kb)
7 Comments
  Re: Flush print() buffer?         


Author: Chas. Owens
Date: Jan 8, 2008 10:56

On Jan 8, 2008 1:40 PM, Stephan Gross jesna.org> wrote:
snip
> The problem is that one of the tag values is a picture and presumably the
> value is some kind of binary value. Once I encounter this problem, the
> print() function no longer works - meaning, I never get any more output even
> though I know there are more values coming.
snip

The problem here is not with STDOUT's buffer, but rather with your
terminal. If you were to output that data to a file you would see
that more data is in fact being written; however, your terminal is
being corrupted by the binary data you are printing. Your best bet is
to filter out the dangerous characters:

$v =~ s/(.)/ord($1) < 32 || ord($1) > 127 ? sprintf "\\x{%%04x}", ord($1) : $1/ge
no comments
  Flush print() buffer?         


Author: Stephan Gross
Date: Jan 8, 2008 10:40

I've been playing with an MP3 tag program. I copied a script that reads
the values in a tag and prints them out.
The problem is that one of the tag values is a picture and presumably
the value is some kind of binary value. Once I encounter this problem,
the print() function no longer works - meaning, I never get any more
output even though I know there are more values coming.
Show full article (1.21Kb)
no comments
  Re: What is happening with this filehandle?         


Author: Paul Lalli
Date: Jan 8, 2008 08:11

On Jan 7, 5:07 pm, cache...@consumercontact.com (Garhone) wrote:
> Hi,
>
> I'm looking at someone else's code. It goes like this:
>
> my $condfile="myfile.txt";
> open(COND, "|compile.pr > $condfile") or die "Can't fork: $!";
>
> What is happening with this filehandle, particularly, what does the
> "|" (pipe) facilitate in this case?

In a separate process, this program executes the compile.pr program.
Whatever is printed to the COND filehandle is fed as input to the
compile.pr process. Whatever output compile.pr generates is
redirected to the file myfile.txt
Show full article (0.85Kb)
no comments