input box

2003-08-05 Thread PANNEER SELVAN
Hi I am trying a way to get input from user in GUI mode.. Like Inputbox in Visual Basic.How do i go about? with regards D.P.S

RE: extracting text

2003-08-05 Thread ccarver
This is what I came up with. Tested and works. #!/usr/bin/perl -w use strict; open DATA, "ips.txt"; # this is the output file with the ip list while () { if ($_ =~ /\[(\w+\.\w+\.\w+\.\w+)\]/) { print IPS "$1\n"; } } Chris Carver Pennswoods.net Mail Administrat

Simple question

2003-08-05 Thread Sommer, Henrik
Hi, How do I divide a variable in an array ? Lets say element one need to be divided by 1000? $line[1] = $line[1]/1000; Thanks, Henrik -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Large file line by line

2003-08-05 Thread Stephen Gilbert
> -Original Message- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2003 12:27 PM > To: [EMAIL PROTECTED] > Subject: Large file line by line > > > Howdt list. > > I've never had to work with really big files before( I'm used > to tiny ones you can slurp in at o

RE: [New Question] Large file line by line

2003-08-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Pablo Fischer wrote: > Hi! > > Reading all these message about reading a 'big' file (I know that > 180MB its not a big file), but what's the difference from reading > like this: > > @file = ; > foreach (@file) { > print $_; > } Attemping to read in the whole file into memory while

Archive::Zip funnny return status

2003-08-05 Thread Dan Muey
use Archive::Zip; ... my $member = $zip->memberNamed($zippedfile); my $rc = $member->extractToFileNamed($unzippedfile); if($rc =~ m/AZ_OK/) { print "ok -$rc-\n; } else { print "Bad -$rc-\n"; } The code above *always* prints: Bab -0- But $unzippedfile is cre

RE: Archive::Zip funnny return status

2003-08-05 Thread Tim Johnson
I think your pattern match will only catch a literal AZ_OK, not the constant. And I'm not sure, but AZ_OK might evaluate to 0. At least I think I remember having trouble with that module because it returns 0 on success, and I kept testing for TRUE/FALSE based on the return status. -Original

DBD::Oracle not executing stored procedure properly...

2003-08-05 Thread Hamish Whittal
Hi all, I have a stored procedure that is defined as follows: PROCEDURE Add_ComponentDetails( p_ComponentID IN number, p_PollingID IN number, p_Answer IN varchar2, p_ASNNumber IN varchar2) In my perl code, I exec the following: my $plsql_params = "'" . join("', '", $ASNNameHash->{compI