1*0Sstevel@tonic-gate#!./perl 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate$n=0; 4*0Sstevel@tonic-gate 5*0Sstevel@tonic-gateprint "1..3\n"; 6*0Sstevel@tonic-gate 7*0Sstevel@tonic-gatesub foo { 8*0Sstevel@tonic-gate $a='abcd'; 9*0Sstevel@tonic-gate 10*0Sstevel@tonic-gate $a=~/(.)/g; 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate $1 eq 'a' or print 'not '; 13*0Sstevel@tonic-gate print "ok ",++$n,"\n"; 14*0Sstevel@tonic-gate} 15*0Sstevel@tonic-gate 16*0Sstevel@tonic-gate$a=foo; 17*0Sstevel@tonic-gate@a=foo; 18*0Sstevel@tonic-gatefoo; 19