My preferred method of removing either leading or trailing white space for
efficiency is like this:
my $fish
for ($fish) {
s/^\s+//; s/\s+$//;
}
# if you have two vars
for ($fish, $mamal) {
s/^\s+//; s/\s+$//;
}
just my two cents.
See the perlsyn manpage for additional info.
Scott
---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]
- leading and trailing spaces Bill Stennett
- Re: leading and trailing spaces Jon Perkin
- Re: leading and trailing spaces Carl Jolley
- Re: leading and trailing spaces Philip Newton
- Word OLE problem Thomas Zapf-Schramm
- Re: Word OLE problem Carl Jolley
- RE: Word OLE problem Thomas Zapf-Schramm
- Re: Word OLE problem Jan Dubois
- Word OLE problem again Thomas Zapf-Schramm
- Scott K Purcell
