copy.pl

Description

Copy.pl is a HFPM module that sets some given field(s) or environmental variable(s) to the value of another field or environmental variable.

Usage

copy.pl $srcfield | srcfld | %srcenvvar {$destfield | destfld | %destenvvar} in the pipeline.

Usage Explanation

The value of the first argument is set to the rest of the arguments.

A '%' prefix indicates the destination is an environmental variable and a '$' prefix means a field destination, which is the default.

Examples

copy.pl $afield %var h
sets the environmental variable "var" and the field "h" to the value of the field "afield".
copy.pl %one $two
sets the field "two" to the value of the environmental variable "one".

Other Notes

The current version number is 1.0.

This module should work on any platform with a perl version 5 and CGI FPI implementation.

This module can be used more than once in the pipeline.


[HFPM Home] [Please comment]
Copyright © by James Hoagland
www.hoagland.org | webmaster@hoagland.org
27 January 1996