Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Having a problem with a short pipe read
I'm using the DBI module and along with a pipe read
(ie, my $line = <$handle> )

I populate a database table with the parsed results of $line.

the problem I'm having is that I'm getting some (not all) short reads
on the handle, meaning that's it's returning but not all the data is
there and there was no '\n' in the data that should have returned it.
A subsequent read ($line = <$handle> ) will get the remaining data.

I picked up this code from a former co-worker and he made mention in
the script of there being a problem with DBI and the pipe which he
tried to fis with undefinig and resetting $SIG{PIPE} around the open
call that set up the pipe, but that doesn't seem to do the trick.

Has anyone else seen this behavior before and know of any fixes?

Thanks,
Brian


Report this thread to moderator Post Follow-up to this message
Old Post
Brian
02-23-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Modules archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:54 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.