in reply to Re: Re: evaluation strategy of perl
in thread evaluation strategy of perl
I hadn't thought about that, though in retrospect it's quite clear. Thanks for making me ponder this.#!/usr/bin/perl -w use strict; my @t = (1,2,3); my @d; for my $i (@t) { push @d, sub { print "$i\n" }; } $_++ for @t; &$_ for @d; __END__ 2 3 4
Makeshifts last the longest.
|
|---|