validation::class::backwards(3pm) [debian man page]
Validation::Class::Backwards(3pm) User Contributed Perl Documentation Validation::Class::Backwards(3pm)NAME
Validation::Class::Backwards - Backwards-Compatibility Layer for Validation::Class
VERSION
version 7.70
SYNOPSIS
package SomeClass;
use Validation::Class;
package main;
my $class = SomeClass->new;
...
1;
DESCRIPTION
Validation::Class::Backwards is responsible for providing deprecated functionality to the Validation::Class::Prototype layer whilst clearly
remaining separate via namespacing.
Note: The methods described here will eventually become obsolete and cease to exist. Please review the namespace occasionally and adjust
your code accordingly. Using methods defined here will generate warnings unless you unset the $ENV{'VALIDATION_CLASS_BC_WARNING'}
environment variable.
METHODS
error
DEPRECATING:
The error method is used to set and/or retrieve errors encountered during validation. The error method with no parameters returns the error
message object which is an arrayref of error messages stored at class-level.
# set errors at the class-level
return $self->error('this isnt cool', 'unknown somethingorother');
# set an error at the field-level, using the field ref (not field name)
$self->error($field_object, "i am your error message");
# return all errors encountered/set as an arrayref
my $all_errors = $self->error();
RECOMMENDED:
# see Validation::Class::Errors
# set errors at the class-level
return $self->errors->add(...);
# set an error at the field-level
$self->fields->{$field_name}->{errors}->add(...);
# return all errors encountered
my $list = $self->errors->list;
AUTHOR
Al Newkirk <anewkirk@ana.io>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-28 Validation::Class::Backwards(3pm)
Check Out this Related Man Page
Class::WhiteHole(3pm) User Contributed Perl Documentation Class::WhiteHole(3pm)NAME
Class::WhiteHole - base class to treat unhandled method calls as errors
SYNOPSIS
package Bar;
# DBI inherits from DynaLoader which inherits from AutoLoader
# Bar wants to avoid this accidental inheritance of AutoLoader.
use base qw(Class::WhiteHole DBI);
DESCRIPTION
Its possible to accidentally inherit an AUTOLOAD method. Often this will happen if a class somewhere in the chain uses AutoLoader or
defines one of their own. This can lead to confusing error messages when method lookups fail.
Sometimes you want to avoid this accidental inheritance. In that case, inherit from Class::WhiteHole. All unhandled methods will produce
normal Perl error messages.
BUGS & CAVEATS
Be sure to have Class::WhiteHole before the class from which you're inheriting AUTOLOAD in the ISA. Usually you'll want Class::WhiteHole
to come first.
If your class inherits autoloaded routines this class may cause them to stop working. Choose wisely before using.
White holes are only a hypothesis and may not really exist.
COPYRIGHT
Copyright 2000 Michael G Schwern <schwern@pobox.com> all rights reserved. This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
AUTHOR
Michael G Schwern <schwern@pobox.com>
SEE ALSO
Class::BlackHole
perl v5.10.0 2003-05-28 Class::WhiteHole(3pm)
hi ,
i have follwing strings in a text file
hello i am cool
hey i am cool
arrey i am cool
in all the above 3 i wanna retrieve cool.......for this i used
split(/ /)
but it takes into consideration only one space.......is there any regular expression to do the trcik?
... (7 Replies)
I am creating a whitelist for User Input Validation. Here is a code snippet that allows alphanumeric and forward slash (/).
if ( $variable =~ /^*$/ ) #allow alphanumeric and fwd slash
{
$returnValue = 'good data';
} ... (3 Replies)
I have a problem.
I have a string , let's say a="!_30".
I have another string to , let's say b="cool++".
I wanna replace string a value with cool.
I wanna a="cool" , without those 2 pluses.
How can I do it , with some C string function. Not vith array's or pointer's ?
I mean , I want... (6 Replies)
Hi all, If this is the wrong forum to post this please direct me to the right place.
While reading the maillogs I noticed the follow errors repeating over and over
Apr 3 08:23:51 ws096 last message repeated 2 times
Apr 3 08:23:51 ws096 spamd: Number found where operator expected at (eval... (4 Replies)
Hi All,
I got a file with 3 fields delimited by hyphen "-". I have to validate & cleanse the data before i begine the processing
Requirements
1. No record should contain more than 2 delimiters
2. No record should even contain less than 2 delimiters
3. Any records that matches rule 1 &... (3 Replies)
Hi All,
I got a file with 3 fields delimited by hyphen "-". I have to validate & cleanse the data before i begine the processing
Requirements
1. No record should contain more than 2 delimiters
2. No record should even contain less than 2 delimiters
3. Any records that matches rule 1 &... (8 Replies)
Hi,
Can anyone provide me the code snippet for EMail Address Validation.
User is going to enter the email address in form window. I need to validate the format is correct.
Thanks in Advance
BS (3 Replies)
Hi All,
I am new to UNIX scripting.
I need to validate a file. I need to check whether the file has a header , detail records and footer.
If all the file is good I need to create a status file with the status 'Y' else 'N'.
I have pasted the an example of the file below:
... (5 Replies)
Hi All,
We need to use & execute some several scripts before loading the data successfully using Informatica.
Can you help me the below scenario:
We will be receiving the files from different countries, and using ftp all the files will be placed onto the server. The file structure will be (.csv... (6 Replies)
I am scanning a file (line by line) for format errors. A line could have multiple errors. Each field in the line is evaluated for errors and sent, along w/ any error messages, to a temporary file. Finally, if any errors were detected, this temporary file is then appended to the errorFile. The... (4 Replies)
Hello all,
I am working on a script and have the first part solved of numerical input validation. Below the code validates that the input is a numerical value between 100 and 1000. If not, it errors out. Now I need to be able to read values separated by a comma. For example, instead of my... (5 Replies)
Hey people, I got small little error which says I entered too many argument in the if else list.
The stock contains a list of information.
The 4th field consist of the quantity available, so I'm trying to alert the user that the stock is less than 3 and needed to restock.
Is this the correct way... (7 Replies)
Dear All,
I have a string "1234567899*0#123456789#", it can be divided into:
- 1st: 1234567899 Validation: 10 digits, only 0-9
- 2nd: *0# Fixed Value
- 3rd: 123456789 Validation: 9 digits, only 0-9
- 4th: # Fixed Value
Would like to know if any 1 line statement perl,... (5 Replies)
Hi !!
I'm rather new both to the UNIX and scripting worlds, and I'm learning the ropes of scripting. Having said this, please excuse me if you notice certain basic errors.
I'm working on a script that implements .jar and .war files for a WAS environment and I need to perform certain... (4 Replies)
Hi folks,
I have below code for unmounting, but i need validation filesystem is unmounted or not, if not it give us error. Please confirm below code or need modification. Please suggest.
umount /oradata
if
then
echo "/oradata Unmounted Successfully"
else
echo... (3 Replies)