Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038901]
[marinersk]: I get a lighter version of this disconcertion (new word?) when the n points remaining until rank disappears.
[choroba]: :-D
[marinersk]: I've often marvelled over the past few decades at just how little it takes to mess me up with this spacial dependence thing. I wonder if I'm mildly autistic or something.
[Eily]: can't the nodelet be moved though? Maybe you could put one that doesn't change first ("Sections" or "Find Nodes" for example)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-05-29 14:03 GMT
Find Nodes?
    Voting Booth?