On Thu, 12 Apr 2001, Peter Jay Salzman wrote:

> i'm having trouble understanding the range operator in perl
> 
>    $from = 3;
>    $to = 6;
>    $range = ($from .. $to);

        $range = join ' ', ($from .. $to);
> 
> i'm assuming this code fragment doesn't work because i'm using the operator
> in scalar context instead of list context?
> 
> i'd like for $range = "3 4 5 6".  is there a way to force evaluation in list
> context?  or am i wrong about why this isn't working?
> 
> pete
> 
> -- 
> "Coffee... I've conquered the Borg on coffee!"               [EMAIL PROTECTED]
>        -- Kathryn Janeway on the virtues of coffee           www.dirac.org/p
> 

--
Dale Bewley - Bewley Internet Solutions Inc. http://bewley.net/

Reply via email to