note
LanX
<I>> try <c>my @online_services = map { /^online.*svc:(.*?):/; $1 } `svcs`; </c></I><P><P>
not equivalent:<P><P>
<c>
DB<217> map { /(1\d*)/;$1 } 5..15
=> (undef, undef, undef, undef, undef, 10, 11, 12, 13, 14, 15)
DB<218> map { /(1\d*)/ } 5..15
=> (10, 11, 12, 13, 14, 15)
</c>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-708738">
<p>Cheers Rolf
<p> <small>( addicted to the Perl Programming Language) </small>
</div></div><P><P>
<H5> update<P></H5><P>
I think you meant:<P><P>
<c>
DB<225> map { @matches=/(1\d*)/;@matches} 5..15
=> (10, 11, 12, 13, 14, 15)
</c>
1053954
1053968