⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 headings.t

📁 UNIX下perl实现代码
💻 T
字号:
BEGIN {   chdir 't' if -d 't';   unshift @INC, '../lib';   unshift @INC, './pod';   require "testp2pt.pl";   import TestPodIncPlainText;}my %options = map { $_ => 1 } @ARGV;  ## convert cmdline to options-hashmy $passed  = testpodplaintext \%options, $0;exit( ($passed == 1) ? 0 : -1 )  unless $ENV{HARNESS_ACTIVE};__END__#################################################################  use Pod::Usage;  pod2usage( VERBOSE => 2, EXIT => 1 );=pod=head1 NAMEB<rdb2pg> - insert an rdb table into a PostgreSQL database=head1 SYNOPSISB<rdb2pg>  [I<param>=I<value> ...]=head1 PARAMETERSB<rdb2pg> uses an IRAF-compatible parameter interface.  A template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.=over 4=item B<input> I<file>The B<RDB> file to insert into the database. If the given nameis the string C<stdin>, it reads from the UNIX standard input stream.=back=head1 DESCRIPTIONB<rdb2pg> will enter the data from an B<RDB> database into aPostgreSQL database table, optionally creating the database and thetable if they do not exist.  It automatically determines thePostgreSQL data type from the column definition in the B<RDB> file,but may be overriden via a series of definition files or directlyvia one of its parameters.The target database and table are specified by the C<db> and C<table>parameters.  If they do not exist, and the C<createdb> parameter isset, they will be created.  Table field definitions are determinedin the following order:=cut#################################################################results in:#################################################################    rdb2pg - insert an rdb table into a PostgreSQL database    rdb2pg [*param*=*value* ...]    rdb2pg uses an IRAF-compatible parameter interface. A template    parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.    The RDB file to insert into the database. If the given name is    the string `stdin', it reads from the UNIX standard input    stream.    rdb2pg will enter the data from an RDB database into a    PostgreSQL database table, optionally creating the database and    the table if they do not exist. It automatically determines the    PostgreSQL data type from the column definition in the RDB file,    but may be overriden via a series of definition files or    directly via one of its parameters.    The target database and table are specified by the `db' and    `table' parameters. If they do not exist, and the `createdb'    parameter is set, they will be created. Table field definitions    are determined in the following order:#################################################################while the original version of Text (using pod2text) gives#################################################################NAME    rdb2pg - insert an rdb table into a PostgreSQL databaseSYNOPSIS    rdb2pg [*param*=*value* ...]PARAMETERS    rdb2pg uses an IRAF-compatible parameter interface. A template    parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.    input *file*        The RDB file to insert into the database. If the given name        is the string `stdin', it reads from the UNIX standard input        stream.DESCRIPTION    rdb2pg will enter the data from an RDB database into a    PostgreSQL database table, optionally creating the database and    the table if they do not exist. It automatically determines the    PostgreSQL data type from the column definition in the RDB file,    but may be overriden via a series of definition files or    directly via one of its parameters.    The target database and table are specified by the `db' and    `table' parameters. If they do not exist, and the `createdb'    parameter is set, they will be created. Table field definitions    are determined in the following order:#################################################################Thanks for any help.  If, as your email indicates, you've not muchtime to look at this, I can work around things by calling pod2text()directly using the official Text.pm.Diab-------------Diab Jeriusdjerius@cfa.harvard.edu

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -