Perl newbie, want to varify data

From: Aaron (aspenamr_at_hotmail.com)
Date: 03/17/04


Date: 17 Mar 2004 12:47:44 -0800

I am new to Perl and would like to do some data verification. What I
would like to do is have a variable that would hold a contacts name
ex: "john" and make sure that the user did not enter ex: "(#$%!" does
anyone know the code that would be able to make sure that my user
entry contains only a select set of verified characters. Also is it
possible for me to set up another variable that would contain the
acceptable characters that are able to be used in the input. I also
would like to limit the size of this variable to 10 characters.



Relevant Pages

  • Re: Perl newbie, want to varify data
    ... Aaron wrote: ... > I am new to Perl and would like to do some data verification. ... > contain the acceptable characters that are able to be used in the ...
    (comp.lang.perl)
  • Re: Reading HTTP response body that is gzipd *and* in UTF-8
    ... The reason I'm not using PerlIO::gzip is mostly just ignorance. ... BM> anything that's visible at the Perl level. ... BM> meaningless to apply gzip to a stream of characters. ... BM> Encode the value of the charset MIME parameter). ...
    (comp.lang.perl.misc)
  • Re: splitting a very large file based on characters in a record (performance)
    ... X (each of 125 characters), and further I have to split the 125 ... While I use awk for most of my text manipulation work, ... personal experience perl will be much faster than awk. ... that I had an awk script and a perl script that read sendmail files to ...
    (comp.unix.shell)
  • Re: FAQ 6.23 How can I match strings with multibyte characters?
    ... Starting from Perl 5.6 Perl has had some level of multibyte character ... See perluniintro, perlunicode, and Encode. ... Other bytes represent single characters, ... I would like to search for a sequence of unicode characters ...
    (comp.lang.perl.misc)
  • Re: Handling international characters in filenames on Win32
    ... > I am struggling with handling accented characters in Win32 long filenames ... > correctly in Perl. ... > international characters in the sub directories names). ... Sounds like one of those codeset conversion problems. ...
    (comp.lang.perl.misc)