Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Check last character of a string

by theroninwins (Friar)
on Aug 06, 2008 at 09:10 UTC ( [id://702570]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (-d $location){
    check if $location ends with \ .. or if not add it.. 
    }
    
  2. or download this
    my $var = substr($location,length($location)-1,1);
        print "\n\nVAR:::   $var\n\n";
    ...
          $location = $location."\\";
          print "NEU:: $location\n\n" ;
          }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://702570]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-23 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found