wruehl has asked for the wisdom of the Perl Monks concerning the following question:
I need to add a a check to stored string variables in order to make sure no spaces appear in the string stored in the variable. Here's the code that I have so far, but it is giving me syntax errors.
Do you have any suggestions as to what I'm doing wrong?if ($vinputfilelocation =~ m//s/) { print LOG "There is a whitespace in the input file location parame +ter, please remove it. \n"; } if ($vlagfilepathname =~ m//s/) { print LOG "There is a whitespace in the flag file location paramet +er, please remove it. \n"; }
-Bill
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Quick RegExp question
by Tanktalus (Canon) on Mar 04, 2008 at 20:17 UTC | |
by wruehl (Acolyte) on Mar 04, 2008 at 20:52 UTC | |
Re: Quick RegExp question
by graff (Chancellor) on Mar 05, 2008 at 02:14 UTC |
Back to
Seekers of Perl Wisdom