more useful options | |
PerlMonks |
Regular Expression and trimmingby akm2 (Scribe) |
on Mar 08, 2001 at 20:52 UTC ( [id://63002]=perlquestion: print w/replies, xml ) | Need Help?? |
akm2 has asked for the wisdom of the Perl Monks concerning the following question: The expression is intented to trim the spaces off the front and back of a string. Example: " Andrew Mitchell" would be trimmed to "Andrew Mitchell"
Thats not happening. Here is the code, Any advise? ($BKCUM_CNUM[$i]) = substr ($line, 0, 7) =~ m/^\s*(.*)\s*$/;
Back to
Seekers of Perl Wisdom
|
|