Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

test::data(3pm) [debian man page]

Data(3pm)						User Contributed Perl Documentation						 Data(3pm)

NAME
Test::Data -- test functions for particular variable types SYNOPSIS
use Test::Data qw(Scalar Array Hash Function); DESCRIPTION
Test::Data provides utility functions to check properties and values of data and variables. Functions Plug-in modules define functions for each data type. See the appropriate module. How it works The Test::Data module simply imports functions from Test::Data::* modules. Each module defines a self-contained function, and puts that function name into @EXPORT. Test::Data defines its own import function, but that does not matter to the plug-in modules. If you want to write a plug-in module, follow the example of one that already exists. Name the module Test::Data::Foo, where you replace Foo with the right name. Test::Data should automatically find it. BUGS
I'm not a very good Windows Perler, so some things don't work as they should on Windows. I recently got a Windows box so I can test things, but if you run into problems, I can use all the patches or advice you care to send. SEE ALSO
Test::Data::Scalar, Test::Data::Array, Test::Data::Hash, Test::Data::Function, Test::Builder SOURCE AVAILABILITY
This source is in Github: http://github.com/briandfoy/test-data/tree/master AUTHOR
brian d foy, "<bdfoy@cpan.org>" COPYRIGHT AND LICENSE
Copyright (c) 2002-2009 brian d foy. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2009-02-12 Data(3pm)

Check Out this Related Man Page

Test::Output::Tie(3pm)					User Contributed Perl Documentation				    Test::Output::Tie(3pm)

NAME
Test::Output::Tie - module used by Test::Output to tie STDERR and STDOUT DESCRIPTION
You are probably more interested in reading Test::Output. This module is used to tie STDOUT and STDERR in Test::Output. Methods TIEHANDLE The constructor for the class. PRINT This method is called each time STDERR or STDOUT are printed to. PRINTF This method is called each time STDERR or STDOUT are printed to with "printf". FILENO BINMODE read This function is used to return all output printed to STDOUT or STDERR. AUTHOR
Currently maintained by brian d foy, "bdfoy@cpan.org". Shawn Sorichetti, "<ssoriche@cpan.org>" SOURCE AVAILABILITY
This module is in Github: http://github.com/briandfoy/test-output/tree/master COPYRIGHT &; LICENSE Currently maintained by brian d foy, "bdfoy@cpan.org". Copyright 2005-2008 Shawn Sorichetti, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. ACKNOWLEDGMENTS
This code was taken from Test::Simple's TieOut.pm maintained Michael G Schwern. TieOut.pm was originally written by chromatic. Thanks for the idea and use of the code. perl v5.10.1 2011-04-22 Test::Output::Tie(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Test for file

I have a script that performs certains functions is a file exists in the specified directory: if then How can you do the reverse of this, basically an "if file does not exist"? dstins (6 Replies)
Discussion started by: dstinsman
6 Replies

2. UNIX for Dummies Questions & Answers

Data arrangement

10 2 1 2 3 4 5 6 7 8 20 3 2 1 3 2 9 8 2 1 Need the data to be arranged: 10 2 1 5 2 6 3 7 4 8 20 3 2 1 1 2 3 8 2 9 please help! (6 Replies)
Discussion started by: bobo
6 Replies

3. UNIX for Dummies Questions & Answers

What am I doing wrong?

I really just mess around in UNIX, for the most part, when I want to get something done. I can usually piece things together by searching for brief how-to's on Google, but the syntax errors in my following .sh file are really confusing me. I've got lots of programming experience in other places, so... (7 Replies)
Discussion started by: demonpants
7 Replies

4. Shell Programming and Scripting

merging of files.

Hi, I want to merge the two files on the basis of columns like... file 1 Data Key A 12 B 13 file2 Data Value A A1 A A2 B B1 B B2 (5 Replies)
Discussion started by: clx
5 Replies

5. Shell Programming and Scripting

Test File Existance Remotely?

Thanks in advance to anyone that can help me answer this: I'm trying to write an if statement that will run test -f on whether a file exists on another server and if it does not then report that negative outcome to a log file. I'm thinking it should look something like this: if ; then rcp... (5 Replies)
Discussion started by: Korn0474
5 Replies

6. UNIX for Dummies Questions & Answers

Help The Helpdesk?!!

-- Thanks in advance for any help -- This is a osx specific typically 10.5.x -10.6.x I work at a mac helpdesk - and we do allot of Data Transfers/Migrations As things go, at the helpdesk, with the world of computers; (hard drives) are not always willing to play nice. So here is the... (4 Replies)
Discussion started by: briandanielz
4 Replies

7. Shell Programming and Scripting

egrep string except when preceded by underscore

having trouble with this seemingly simple taks.. :mad: Test data: we want to keep lines 2,3 & 4 -- want to exclude when ${.*schema} is preceded with an underscore; Valid {.*schema} should always be preceded spaces or be found at the beginning of a line. egrep... (5 Replies)
Discussion started by: danmauer
5 Replies

8. Shell Programming and Scripting

How to add the contents of a file?

Hi I have a file named Data cat Data 1797548295 2420652689 513068908 1426750759 3229436285 2710691077 i want to sum all these lines, can we use any direct command for that in unix. Thanks in advance.:b: (7 Replies)
Discussion started by: Prateek007
7 Replies

9. Shell Programming and Scripting

Normalize Data and write to a flat file

(7 Replies)
Discussion started by: sp999
7 Replies

10. Shell Programming and Scripting

Data Cleaning in a file

Hi , I have the below source data, I need to clean the data in 2nd,4th,5th columns. Source Data RECORD,CASH_TRANS,BEJING,AUG2011/CASH_TRANS,Y/N150/CASH_TRANS,N/201108 RECORD,CASH_TRANS,INDIA,AUG2011/CASH_TRANS,Y/NC110/CASH_TRANS,N/201108... (7 Replies)
Discussion started by: mora
7 Replies

11. Shell Programming and Scripting

nawk oneliner to find and replace a pattern

Hi, I need to replace the ip 1.1.1.1 with the name test.sol.box . I have tried and come up with following code. do we have any other way of doing this with nawk?? Data: #This is a test setup.Please enter your values and corresponding port number here ########################## Server Host... (5 Replies)
Discussion started by: chidori
5 Replies

12. Shell Programming and Scripting

awk print pattern match line and following lines

Data: Pattern Data Data Data Data Data Data Data Data Data ... With awk, how do I print the pattern matching line, then the subsequent lines following the pattern matching line. Varying number of lines following the pattern matching line. (9 Replies)
Discussion started by: dmesserly
9 Replies

13. UNIX for Dummies Questions & Answers

Data manipulation

Hallo Team, I need to manipulate existing data file. Have a look at current data and expected data: Current Data: 27873517141 27873540000 27873515109 27873517140 27873540001 27873540000 27873501343 27873540000 27873517140 27873511292 27873645989 27873540000 27873540000... (7 Replies)
Discussion started by: kekanap
7 Replies

14. Shell Programming and Scripting

How to use awk to output such a pattern?

Hi all, I want to output the following pattern in a comma separted format, but am not able to do it. Table1.FIND.Value= 124 Data Data Data Data Data Table1.FIND.Value =256 Data Data Data Data Data The outPut i expect is (5 Replies)
Discussion started by: sidnow
5 Replies

15. War Stories

Data Centre meets Vacuum Cleaner

Hi Folks, I have just spent a couple of days resolving some problems at the remote DR data centre, sorting out the problems caused by the over zealous use of a Vacuum cleaner of all things. We have a backup server a SUN V480R with a Storedge 3510 and expansion attached which suffered a... (6 Replies)
Discussion started by: gull04
6 Replies