Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: search =~ for /'s

by Anonymous Monk
on Jun 30, 2002 at 03:08 UTC ( #178301=note: print w/replies, xml ) Need Help??


in reply to Re: search =~ for /'s
in thread search =~ for /'s

$new .= '/' unless substr $new, -1 eq '/'; can someone explain what -1 does

Replies are listed 'Best First'.
Re: Re: Re: search =~ for /'s
by little (Curate) on Jun 30, 2002 at 03:15 UTC
    see perlman:perlfunc
    # 1st argument given: string to process # 2nd argument given: offset # so here it means regardless of the true length the # last character in the string substr ($new, -1);

    Have a nice day
    All decision is left to your taste

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://178301]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-03-26 21:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.