Skip Menu |

This queue is for tickets about the forks CPAN distribution.

Report information
The Basics
Id: 44828
Status: resolved
Priority: 0/
Queue: forks

People
Owner: Nobody in particular
Requestors: cspencer [...] sprocket.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.32
Fixed in: (no value)



Subject: forks.pm's join subroutine does not return in array context
forks.pm's join subroutine does not return values in an array context. The array is forced to a scalar value (ie. the number of elements in the array). Please see attached example for more details.
Subject: forks.pl
#! /usr/bin/perl use Data::Dumper; use forks; sub foo { return (1, 2, 3, 4, 5); } MAIN: { my $thr = threads->create('foo'); my @res = $thr->join; print "Results: " . Dumper(\@res); }
Didn't read the documentation properly before filing bug report. :)
No bug.