Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: mysterious error of read function in solaris

by JavaFan (Canon)
on Jan 19, 2012 at 15:46 UTC ( #948794=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $r;
    while ($r = read ...) {
        ... do stuff here ...
    }
    die "read failed: $!" unless defined $r;
    
  2. or download this
    while (read(...) // die "read failed: $!") {
        ... do stuff here ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948794]
help
Chatterbox?
[1nickt]: choroba Is it a safe assumption that if there is a threaded perl then the user will want to use Thread::Queue?
[hippo]: Why not?
[1nickt]: That's good! I suppose the cpanfile would be the same however the app distro is structured ...
[1nickt]: hippo no reason why not other than wanting to check an assumption :-)
[hippo]: For a self-contained application which can therefore ensure thread safety it seems like a sensible approach.
[choroba]: No, if there are no threads, then the user wants to use MCE. If there are threads, the user can choose.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (19)
As of 2017-10-18 13:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?