You might try the following: - create a packing list in the Admin Tool - read the Object via ars_GetContainer - print the resulting data structure with Data::Dumper - use the output as a template for your packing list
This should work because usually the structure for the ars_Create... functions is the same as returned from the ars_Get... functions. Here's a code snippet: my $packingList = ars_GetContainer( $ctrl, $packingListName ); die "ars_GetContainer($packingListName): $ars_errstr\n" if $ars_errstr; use Data::Dumper; print Data::Dumper->Dump( [$packingList], ['packingList'] ); Regards, Thilo Stapff LJ Longwing wrote: > Hey...I'm new to this list...so please go easy on me. > > ARS 7.1 Patch 2 > ARSPerl 1.90 > ActivePerl-5.8.8.819 > Windows 2003 > > I've been using ARSPerl for quite some time, but mainly the client > functions. I'm writing a script with the intention of taking 2 packing > list names, determining if one of them exists, if not, create it, if it > does I want to add the contents of pl1 to pl2 and update to the server. > I've been using the Java 7.1 API and have done this there...but I don't > want to write an entire program and hafta call it from my perl script to > get this done. I have successfully used ars_GetContainer, and > determined if pl2 exists on the server, I'm at the point where I'm > trying to create a new container and can't find ANY good documentation > about how to create the hash in question. Any and all help is > appreciated, most preferable of course would be a snippet of code that > would create a 'blank' packing list. > > Thanks for your time. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > > > -- > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users