RE: Need help getting data from a structure..

2011-09-29 Thread Frank Kleinburg
List, First I would like to thank all who provided input.. With the help of the this list, I was able to figure out what I needed to change to get it all working.. And we have successfully kept VB out (Yippy!).. Now to the solution (note: I have copied the little test code and its output below..

RE: Need help getting data from a structure..

2011-09-29 Thread Weidner, Ron
> Can someone explain how to access $InstDesc?? Also please > explain how I would access (that is read from or write to) > to the $Severity scalar on the bottom structure.. > Thanks in advance.. flk Sure I can help. (or guide you astray) #!/usr/bin/perl use strict; use warnings; my %PlcyActi

Re: Need help getting data from a structure..

2011-09-28 Thread Rob Dixon
On 28/09/2011 15:33, Frank Kleinburg wrote: Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly complicated, none have more tha

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
Frank: CCing the list since you didn't indicate that this was a private message. I'm assuming you meant to "reply to all" (which is probably what you should have done anyway). :) On Wed, Sep 28, 2011 at 12:55 PM, Frank Kleinburg wrote: > Brandon, > > You nailed it.. The one change from "INSTNCE

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
On Wed, Sep 28, 2011 at 1:00 PM, lesleyb wrote: > $Policy->{INSTNCE} evaluates to a hash.  Then you ask Perl to access the value > given by the key $CondID in that hash.  $CondID is a key to a reference to > another anonymous hash.  But this time you don't use the '->' to get to the > value of the

Re: Need help getting data from a structure..

2011-09-28 Thread 'lesleyb'
On Wed, Sep 28, 2011 at 09:33:50AM -0500, Frank Kleinburg wrote: > Hello list, > > I've been playing with perl going back to the 4.x days, mostly simple > scripts to monitor server or application daemons, kick off and manage > backups, or read log files.. While some of these programs are fairly >

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
On Wed, Sep 28, 2011 at 10:33 AM, Frank Kleinburg wrote: >        $Policy = { >                NAME => $PlcyName, >                DESCRPT => $PlcyDesc, >                INSTNCE => { %Instance }, >        }; > >        %Instance = ( >                $CondID => { >                        DESCRPT =>

Need help getting data from a structure..

2011-09-28 Thread Frank Kleinburg
Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly complicated, none have more than just tickled the more sophisticated features

RE: Having problems getting data back to STDOUT once I assign it to a file

2009-07-22 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: Patrick K Christopher TANAGER > [mailto:pchristop...@tanagerinc.com] > Sent: Tuesday, July 21, 2009 11:04 > To: Wagner, David --- Senior Programmer Analyst --- CFS; Tony > Esposito; beginners@perl.org > Subject: RE: Having problems

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Uri Guttman wrote: "SHC" == Shawn H Corey writes: SHC> Uri Guttman wrote: >> >> print < >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scrip

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> Uri Guttman wrote: >> >> print <> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!!

RE: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Patrick K Christopher TANAGER
qw(tee); > > # simple usage: > tee(STDOUT, '>', 'stdout.txt'); > > Tony > > > > ________ > From: John W. Krahn > To: > Sent: Tuesday, 21 July, 2009 8:41:25 > Subject: Re: Having problems getting data back to STDOUT once

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Uri Guttman wrote: ""D" == "Wagner, David <--- Senior Programmer Analyst --- CFS" > writes: "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "Al

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Uri Guttman
> ""D" == "Wagner, David <--- Senior Programmer Analyst --- CFS" > > writes: "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n"; "D> printf "All STDOUT/S

RE: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: Tony Esposito [mailto:tony1234567...@yahoo.co.uk] > Sent: Tuesday, July 21, 2009 08:08 > To: beginners@perl.org > Subject: Fw: Having problems getting data back to STDOUT once > I assign it to a file > > Back to the question at han

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Jay Savage wrote: On Tue, Jul 21, 2009 at 9:25 AM, Shawn H. Corey wrote: John W. Krahn wrote: [snip] close(STDERR); open(STDOUT , '>') || die "Unable to open STDOUT: $!"; You're not opening STDOUT to anything. And you closed STDERR so the die message can't go anywhere. In fact

Fw: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Tony Esposito
Back to the question at hand - have you tried using 'tee' use File::Tee qw(tee); # simple usage: tee(STDOUT, '>', 'stdout.txt'); Tony From: John W. Krahn To: Sent: Tuesday, 21 July, 2009 8:41:25 Subject: Re: Having problems

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Jay Savage
On Tue, Jul 21, 2009 at 9:25 AM, Shawn H. Corey wrote: > John W. Krahn wrote: [snip]        close(STDERR);        open(STDOUT , '>') || die "Unable to open STDOUT: $!"; >>> >>> You're not opening STDOUT to anything.  And you closed STDERR so the die >>> message can't go anywhere.  In fact

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread John W. Krahn
Tony Esposito wrote: From: John W. Krahn Shawn H. Corey wrote: John W. Krahn wrote: Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblI

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread John W. Krahn
Shawn H. Corey wrote: John W. Krahn wrote: Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Shoul

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
John W. Krahn wrote: Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the a

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread John W. Krahn
Shawn H. Corey wrote: Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the audittrail file...

AW: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Thomas Bätzler
Wagner, David --- Senior Programmer Analyst --- CFS asked: > I have looked at perldoc -f open and tried a number of things. The > line "should be last line" is appearing in my audittrail file, but I > never see the EndOfProg or Error in the auditrrail or on the screen. Try "perldoc -f sele

Re: Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Shawn H. Corey
Wagner, David --- Senior Programmer Analyst --- CFS wrote: I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the audittrail file...*\n\n"; clo

Having problems getting data back to STDOUT once I assign it to a file

2009-07-21 Thread Wagner, David --- Senior Programmer Analyst --- CFS
I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*Should be last line in the audittrail file...*\n\n"; close(STDOUT); close(STDERR); open(STDOUT , '>')

getting data from URL

2008-11-11 Thread Brian
Hello Having tested my code locally with PERL, I am now playing with it as cgi. So far I have only been using 1 ARGV value and would like to add another one into my calcs, so value1 = $ARGV[0] and value2 = $ARGV[1] In my html I am using a couple of radio buttons, a textfield, and a submit bu

getting data from excel

2007-12-04 Thread pauld
i want to extract data from an excel spreadsheet into a hash of hashes so row 1 @headings= [col0,col1,col2 etc ] then i can loop through the rest ,extract the data a row at a time then i can for each row @columns = [col0,col1,col2 etc ] @[EMAIL PROTECTED]@columns; and then $alldata{rownumber}=\%

RE: Why am I getting data from Current Directory?

2005-03-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
John W. Krahn wrote: > Wagner, David --- Senior Programmer Analyst --- WGO wrote: >> Bret Goodfellow wrote: >>> >>> From: Wagner, David --- Senior Programmer Analyst --- WGO >>> >>> Bret Goodfellow wrote: >>> I am writing a script to list out a directory's contents, showing the number

Re: Why am I getting data from Current Directory?

2005-03-11 Thread John W. Krahn
Wagner, David --- Senior Programmer Analyst --- WGO wrote: Bret Goodfellow wrote: From: Wagner, David --- Senior Programmer Analyst --- WGO Bret Goodfellow wrote: I am writing a script to list out a directory's contents, showing the number of days since modified. The problem I am having is that th

RE: Why am I getting data from Current Directory?

2005-03-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
gt; Sent: Friday, March 11, 2005 3:13 PM > To: Bret Goodfellow; beginners@perl.org > Subject: RE: Why am I getting data from Current Directory? > > > Bret Goodfellow wrote: >> I am writing a script to list out a directory's contents, showing the >> number of days sinc

RE: Why am I getting data from Current Directory?

2005-03-11 Thread Bret Goodfellow
ellow; beginners@perl.org Subject: RE: Why am I getting data from Current Directory? Bret Goodfellow wrote: > I am writing a script to list out a directory's contents, showing the > number of days since modified. The problem I am having is that the > script doesn't list out the

Re: Why am I getting data from Current Directory?

2005-03-11 Thread John W. Krahn
Bret Goodfellow wrote: I am writing a script to list out a directory's contents, showing the number of days since modified. The problem I am having is that the script doesn't list out the "modified time" unless I change to the directory being listed. If I change to the directory I want to list, t

RE: Why am I getting data from Current Directory?

2005-03-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Bret Goodfellow wrote: > I am writing a script to list out a directory's contents, showing the > number of days since modified. The problem I am having is that the > script doesn't list out the "modified time" unless I change to the > directory being listed. If I change to the directory I want to

Why am I getting data from Current Directory?

2005-03-11 Thread Bret Goodfellow
I am writing a script to list out a directory's contents, showing the number of days since modified. The problem I am having is that the script doesn't list out the "modified time" unless I change to the directory being listed. If I change to the directory I want to list, then all works okay. Is

Re: getting data

2004-06-11 Thread Roberto Etcheverry
Is this what you need? #!/usr/bin/perl use strict; # List of required columns separated by ', ', must match names in 'Fields:' my $req_fields = shift || 'Subject id, % identity, alignment length, mismatches, q. start, q. end'; # Split into array my @req_fields = split /, /, $req_fields; # Print he

getting data

2004-06-10 Thread aditi gupta
hi to all, well, a listing of sequence similarity is as follows: # BLASTN 2.2.9 [May-01-2004] # Query: gi|37182815|gb|AY358849.1| Homo sapiens clone DNA180287 ALTE (UNQ6508) mRNA, complete cds # Database: nr # Fields: Query id, Subject id, % identity, alignment length, mismatches, gap opening

Re: Getting data from hashes

2004-01-21 Thread John W. Krahn
Robin Sheat wrote: > > I have a method 'getNetwork' that returns a hash. Actually, subroutines in perl return lists. > I can quite happily go: > %reply = $network->getNetworkError('net','data','data2'); > my $baseErr = $reply{error}; > > however, I can't go: > my $baseErr = $network->getNetwork

Getting data from hashes

2004-01-21 Thread Robin Sheat
I have a method 'getNetwork' that returns a hash. I can quite happily go: %reply = $network->getNetworkError('net','data','data2'); my $baseErr = $reply{error}; however, I can't go: my $baseErr = $network->getNetworkError('net','data','data2')->{error}; nor: my $baseErr = ${$network->getNetworkEr

Re: getting data from one table, putting it into another...

2002-06-26 Thread Robert Thompson
This is more of an MySQL question than a Perl question, but here goes: A possible error is that you are inserting into the same table you are selecting from. > my $sth = $dbh->prepare( "SELECT * FROM board where serial='CN+/P422'" ) || > my $sth2 = $dbh->prepare("INSERT INTO board @abfrage")

RE: getting data from one table, putting it into another...

2002-06-26 Thread Kipp, James
> > #put values into an array > my @abfrage = $sth->fetchrow_array; > > #prepare insert of values from the array in second database > > my $sth2 = $dbh->prepare("INSERT INTO board @abfrage"); I think you need to interate through the array and split into the fields of your table then you can us

RE: getting data from one table, putting it into another...

2002-06-26 Thread Hanson, Robert
lders"); $sth->execute(@abfrage); The problem probably is that you are trying to insert varchar data and you aren't quoting it. This will take care of that for you. Rob -Original Message- From: Theuerkorn Johannes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 9:00 AM

getting data from one table, putting it into another...

2002-06-26 Thread Theuerkorn Johannes
Hi there, again one (probably simple) question: I have two databases and want to put the data from one table into the same table in the other database... Doing it like follows up gives me the right values, (like i can see from the later Output) but doesnt write into the second table... Any sugg

use Getopt::Std was Re: Getting data from console

2002-05-29 Thread drieux
On Wednesday, May 29, 2002, at 09:27 , drieux wrote: [..] > perldoc Getopt::Standard before the monkeyBoys[tm] start screeching and flapping their wings - that should have been perldoc Getopt::Std I keep forgetting when we spend the $100 and buy the vowel from vanna. So that peo

Re: Getting data from console

2002-05-29 Thread drieux
On Wednesday, May 29, 2002, at 08:31 , Tor Hildrum wrote: [..] >> Just another question. How can I get a user input from the console in >> perl? >> I'm just playing with the DBI Module and want to ask for a select >> statement, >> which I can enter in the console. Executing the statment works a

[Thanks] AW: Getting data from console

2002-05-29 Thread Heiko Heggen
wow, so easy, great. thanks guys. heiko >>-Ursprüngliche Nachricht- >>Von: Tor Hildrum [mailto:[EMAIL PROTECTED]] >>Gesendet: Mittwoch, 29. Mai 2002 17:32 >>An: Heiko Heggen; Perl >>Betreff: Re: Getting data from console >> >> >>> Fro

Re: Getting data from console

2002-05-29 Thread Tor Hildrum
> From: "Heiko Heggen" <[EMAIL PROTECTED]> > Date: Wed, 29 May 2002 15:28:17 +0200 > To: "Beginners@Perl. Org" <[EMAIL PROTECTED]> > Subject: Getting data from console > > Hi. > > Just another question. How can I get a user input from the

Re: Getting data from console

2002-05-29 Thread Ìèõàèë Êþðøèí
> Hi. > Just another question. How can I get a user input from the console in perl? > I'm just playing with the DBI Module and want to ask for a select statement, > which I can enter in the console. Executing the statment works already fine > *gg*. > Thnx for your help. this is a great mailing l

Getting data from console

2002-05-29 Thread Heiko Heggen
Hi. Just another question. How can I get a user input from the console in perl? I'm just playing with the DBI Module and want to ask for a select statement, which I can enter in the console. Executing the statment works already fine *gg*. Thnx for your help. this is a great mailing list :o) Hei

Re: Getting data from an Access 2000 Database

2002-05-16 Thread drieux
On Wednesday, May 15, 2002, at 05:58 , Daniel J. Rychlik wrote: > Use Getopt::Std; > Use Win32::ODBC; - yes the 'thwacking' sound that you hear is me hitting my forehead going - "dumb drieux, dumb drieux." I shall answer anyone who asks if Win32::ODBC is the right choice for Access 2000

RE: Getting data from an Access 2000 Database

2002-05-15 Thread Daniel J. Rychlik
ubject: Re: Getting data from an Access 2000 Database On Wednesday, May 15, 2002, at 04:55 , Daniel J. Rychlik wrote: > Never mind - I found my answer. Sorry for the spam [..] and the answer was? > > I'm taking on a project that requires me to access reports from an > Access da

Re: Getting data from an Access 2000 Database

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 04:55 , Daniel J. Rychlik wrote: > Never mind - I found my answer. Sorry for the spam [..] and the answer was? > > I'm taking on a project that requires me to access reports from an > Access database and email the report to the corresponding agent. This > has t

RE: Getting data from an Access 2000 Database

2002-05-15 Thread Daniel J. Rychlik
D] Subject: Getting data from an Access 2000 Database Hello, I'm taking on a project that requires me to access reports from an Access database and email the report to the corresponding agent. This has to be done everyday. I need to know if I can do it in perl. I've researched the diffe

Getting data from an Access 2000 Database

2002-05-15 Thread Daniel J. Rychlik
Hello, I'm taking on a project that requires me to access reports from an Access database and email the report to the corresponding agent. This has to be done everyday. I need to know if I can do it in perl. I've researched the different modules and the closet module I can find is the Win32::O