More basic questions

2010-02-10 Thread PolyPusher
All, I have a file that defines pins for an IC. The code needs to find ".SUBCKT RE1321_4" and produce a list that complies with SKILL(lisp) context for Cadence tool suite, the output needs to like ("Ant" "DCS_RX".. "last pin ") and outputs to a file... If pins list in the file do not fit

File Parsing, perl basics

2010-02-10 Thread PolyPusher
All, Below is from a CBR file describing the pins, or IO for an IC circuit. I need code that takes code as an input and returns a list that can be read into a CAD tool in SKILL(lisp language) syntax. Where .SUBCKT RE1321_4 is the begining of the list of pins, if a new line is needed it is starte

How to keep script alive if my shell closes

2010-02-10 Thread Ariel Casas
Hello all, I've created a perl script that creates a vpn connection, I call the vpn connection with the perl system function eg. system("vpnclient connect company_lan") ; With the system function, the perl script will not continue until I stop the vpn connection. When I stop the vpn connection th

Re: prepare(SELECT ... FROM TABLE) error

2010-02-10 Thread Dr.Ruud
Jay Savage wrote: Wrap the call in an eval block. Then check $@ to see if there was a fatal error, which you can ignore if you want to or do something along the lines of: eval { my $sth = $dbh->prepare("SELECT COUNT(*) FROM mytable"); }; if ($@) { print "Table $tabl

Re: How to keep script alive if my shell closes

2010-02-10 Thread Shlomi Fish
On Tuesday 09 Feb 2010 20:40:02 Ariel Casas wrote: > Hello all, > I've created a perl script that creates a vpn connection, I call the > vpn connection with the perl system function eg. > > system("vpnclient connect company_lan") ; > > With the system function, the perl script will not continue u

Re: More basic questions

2010-02-10 Thread John W. Krahn
PolyPusher wrote: All, Hello, I have a file that defines pins for an IC. The code needs to find ".SUBCKT RE1321_4" and produce a list that complies with SKILL(lisp) context for Cadence tool suite, the output needs to like ("Ant" "DCS_RX".. "last pin ") and outputs to a file... If pin

LWP error returned

2010-02-10 Thread Mike Blezien
Hello, I've run into an error while using the LWP module which I haven't come accross before and was wondering what is means. This is the coding I'm using: -- use LWP::UserAgent; my $USERNA

Re: LWP error returned

2010-02-10 Thread Dermot
On 10 February 2010 15:47, Mike Blezien wrote: > Hello, > > I've run into an error while using the LWP module which I haven't come > accross before and was wondering what is means. This is the coding I'm > using: > > -

Re: LWP error returned

2010-02-10 Thread Mike Blezien
- Original Message - From: "Dermot" To: "Perl List" Sent: Wednesday, February 10, 2010 10:14 AM Subject: Re: LWP error returned On 10 February 2010 15:47, Mike Blezien wrote: Hello, I've run into an error while using the LWP module which I haven't come accross before and was wond

Re: prepare(SELECT ... FROM TABLE) error

2010-02-10 Thread Jay Savage
On Tue, Feb 9, 2010 at 8:05 PM, Dr.Ruud wrote: > Jay Savage wrote: > [snip] > Because $@ is a global, it is best practice to act on > the return value of eval itself: [snip] $@ is also *guaranteed*--in the words of perlfunc--to be set correctly. I believe that historically this may not have be

Re: LWP error returned

2010-02-10 Thread Dermot
On 10 February 2010 17:01, Mike Blezien wrote: > > - Original Message - From: "Dermot" > To: "Perl List" > Sent: Wednesday, February 10, 2010 10:14 AM > Subject: Re: LWP error returned > > > On 10 February 2010 15:47, Mike Blezien wrote: >> >> Hello, >> >> I've run into an error while u

XML to RDF using O O Perl

2010-02-10 Thread Aravind Venkatesan
Hello, I am new to perl. I am trying write a Perl module to convert KGML (XML file) to RDF format . Could anybody suggest as to how to go about this (just to give me a start). Aravind -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@p

Perl DBI Oracle SYSDBA help/advise please:

2010-02-10 Thread newbie01 perl
Hi all, To anyone who had been using Perl DBI and Oracle, can you please confirm if connection by SYSDBA works or doesn't? I currently have the following DBI / DBD installed on this problem: DBI Version : 1.43 DBD Version : 1.15 Unfortunately, am not the SA so can't just install the latest modu

Re: XML to RDF using O O Perl

2010-02-10 Thread Owen
> Hello, > > I am new to perl. I am trying write a Perl module to convert KGML (XML > file) to RDF format . Could anybody suggest as to how to go about > this > (just to give me a start). Absolutely no idea, but did you search CPAN http://search.cpan.org/ Searching on rdf and xml threw up many

Re: XML to RDF using O O Perl

2010-02-10 Thread Jeff Peng
On Thu, Feb 11, 2010 at 6:00 AM, Aravind Venkatesan wrote: > Hello, > > I am new to perl. I am trying write a Perl module to convert KGML (XML file) > to RDF format .  Could anybody suggest as to how to go about this (just to > give me a start). > Hi, You may pick a book for learning some base k

Re: How to keep script alive if my shell closes

2010-02-10 Thread Jeff Peng
On Wed, Feb 10, 2010 at 2:40 AM, Ariel Casas wrote: > > My question is; how do I keep my perl script from dying if my shell > window accidentally closes while my perl script is paused at the > system function portion of my script? Hi, Make a daemon process for running in the script, or use nohu

Re: prepare(SELECT ... FROM TABLE) error

2010-02-10 Thread Jeff Peng
On Thu, Feb 11, 2010 at 2:03 AM, Jay Savage wrote: > > $@ is also *guaranteed*--in the words of perlfunc--to be set > correctly. I believe that historically this may not have been the > case: $@ may have only been set on failure and not flushed on success, > but in recent Perls it should be reliab

Re: How to keep script alive if my shell closes

2010-02-10 Thread Shawn H Corey
Jeff Peng wrote: > On Wed, Feb 10, 2010 at 2:40 AM, Ariel Casas wrote: > >> My question is; how do I keep my perl script from dying if my shell >> window accidentally closes while my perl script is paused at the >> system function portion of my script? > > Hi, > > Make a daemon process for runn

Perl Hiding Username/Password

2010-02-10 Thread newbie01 perl
Hi all, Can anyone please advise how I can change the following codes to work where the and are not exposed? Script is ran via crontab and can also be run manually, at the moment am reading these values from some sort of delimited file. The worry is someone getting access to the script and then

Perl error trapping help, for example DBI

2010-02-10 Thread newbie01 perl
Hi all, Just want to know if there is an alternative to these error "trapping" that am using for the following code: #!/usr/bin/perl use DBI; $dbh = DBI->connect('dbi:Oracle:host=localhost;sid=test1;port=1521', 'test1_user', 'test1_password'); if ( defined($dbh) ) {# Checking for a succ

Perl equivalent to UNIX's <

2010-02-10 Thread newbie01 perl
Hi all, We are in the process of changing UNIX and MS-DOS scripts into Perl, mostly UNIX scripts and there are a lot of codes that uses the < Today is ==> ' || sysdate from dual ; set heading on prompt prompt - MAX DATETIME prompt select max(datetime), max(ackdatetime), max(tim

Re: Perl equivalent to UNIX's <

2010-02-10 Thread Jim Gibson
On 2/10/10 Wed Feb 10, 2010 3:07 PM, "newbie01 perl" scribbled: > Hi all, > > We are in the process of changing UNIX and MS-DOS scripts into Perl, mostly > UNIX scripts and there are a lot of codes that uses the < Am just wanting to know if there are better alternative to what I've been > doin

Re: Perl equivalent to UNIX's <

2010-02-10 Thread newbie01 perl
Hi Jim, Thanks for your advise ... Am currently having issues with using DBI and DBD and is constrained on installing new DBI versions so at the moment my only option is to shell out. If I can get a "fix" on using DBI/DBD where I do not need to supply username and password, then I will check cho

Re: Perl equivalent to UNIX's <

2010-02-10 Thread Jim Gibson
On 2/10/10 Wed Feb 10, 2010 5:53 PM, "newbie01 perl" scribbled: > Hi Jim, > > Thanks for your advise ... > > Am currently having issues with using DBI and DBD and is constrained on > installing new DBI versions so at the moment my only option is to shell out. > > If I can get a "fix" on usin

Perl CGI advise/feedback please ...

2010-02-10 Thread newbie01 perl
Hi all, I am wanting some advise/input on setting up some sort of intranet site to allow system operators to manage the servers, mostly UNIX servers and some Windows. I am constrained by not being able to install new modules or a database, for example, MySQL. The web server will be Apache. Given t

Re: Perl CGI advise/feedback please ...

2010-02-10 Thread Jeff Peng
On Thu, Feb 11, 2010 at 10:18 AM, newbie01 perl wrote: > > I need some guidance if someone know of any existing set of CGI-BIN scripts > that I can just plug it and used for this purpose. > Will you run the scripts under the share hosting environment? If so you are very hard to get the applicati

Re: Perl Hiding Username/Password

2010-02-10 Thread Jeff Peng
On Thu, Feb 11, 2010 at 7:04 AM, newbie01 perl wrote: > The worry is someone getting access to the script and then putting in some > print commands to expose the username and password information. Could take a look at: perldoc -q 'hide the source' -- Jeff Peng Email: jeffp...@netzero.net Skyp

Re: Perl CGI advise/feedback please ...

2010-02-10 Thread Jim Gibson
On 2/10/10 Wed Feb 10, 2010 6:18 PM, "newbie01 perl" scribbled: > Hi all, > > I am wanting some advise/input on setting up some sort of intranet site to > allow system operators to manage the servers, mostly UNIX servers and some > Windows. I am constrained by not being able to install new mod

file handling

2010-02-10 Thread elavazhagan perl
Hi, I have a program which reads the input file,updates once and outputs in a new file. Ex.The first line L1 will be updated to L2. I need to put this into a loop so that the scripts will be invoked 1000 times and the output contains the appended data(L1 TO L1000). Please can you suggest few meth