Re: Removing spaces

2001-07-19 Thread Dave Neill
There's also: $foo =~ s/^\s*//; and if you want to strip leading and trailing spaces: $foo =~ s/^\s*(.*?)\s*$/$1/; Though some say that the two step: $foo =~ s/^\s*//; $foo =~ s/\s*$//; is faster. There's also a module: String::Strip with a function StripLTSpace() and it's fore and aft v

RE: Help please (any one)

2001-06-22 Thread Dave Neill
From: Govinderjit Dhinsa <[EMAIL PROTECTED]> > My question was; > How do I put a condition on the program, as I only want data from the > input files, which at 'field 15' has a 'M' and some other fileds that I > need(as marked on example data)! If you mean by "field 15" the fifteenth elem

utf8 and uc()

2001-06-10 Thread Dave Neill
I've gotten the following to work (after doing a Linux localedef command for fi_FI - finnish) and am now trying to achieve some knowledge of how to do manipulations/matchings using the utf8 pragma. The locale test reads: #!/usr/bin/perl -w use POSIX; use locale; $loc = POSIX::setlocale( &POSIX