Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: index using a range

by jwkrahn (Monsignor)
on Jun 14, 2013 at 06:38 UTC ( #1038901=note: print w/replies, xml ) Need Help??


in reply to index using a range

$ perl -le' my $Str1 = "000001"; $Str1 =~ /[1-9]/ and my $Index = $-[ 0 ]; print "$Index\n"; ' 5

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038901]
help
Chatterbox?
roho replaces stale cookies with fresh on the platter on the sideboard.
roho takes a cookie from the platter on the sideboard.
roho takes a handful of cookies from the platter on the sideboard.
roho gets a cup of tea to dunk cookies.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-04-27 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (502 votes). Check out past polls.