> Hi, > > How do you extract the last character of a string Check out substr
> I basically want to see if a list of directory strings have a > slash at the end > or not. > > For eg if > > $dir = 'd:/abs/fez'; > > I know can use the length function to get the length of $dir but how do I > extract the last character ie. z and then do my tests ? use File::Basename; _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs