Re: make an executable File / compile perl

2002-08-27 Thread Dharmendra Rai
use perlcc - Get a bigger mailbox -- choose a size that fits your needs. http://uk.docs.yahoo.com/mail_storage.html

RE: generating arrays on the fly

2002-08-27 Thread Dharmendra Rai
Hi , The name of the global var is put into symtab during compilation while that of local var is converted to its offset. So if u want to "NAME" a var at run-time, u won't succeed. All u can do is that use hash-table with the KEYNAMES as those words appearing in the file. Read about the th

make an executable File / compile perl

2002-08-27 Thread Angerstein
Hi, I have a perlscript using "quite some" modules. Therefor that I use AIX in different Versions the path of perl, and even the installed modules differs from server to server. The main problem is AIX with compiler is more expensive than without so the most costumers have servers without an comp

Checking for .jpg/.gif/.png files

2002-08-27 Thread eric-perl
Hello, All: I need to check files to make sure that they are .gif, .jpg, or .png graphic files before processing them. How can I verify that? e.g., In unix, the 'type' command returns the file's type. -- Eric P. Sunnyvale, CA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: conditional statement

2002-08-27 Thread Paul Johnson
On Wed, Aug 28, 2002 at 07:57:26AM +0200, Paul Johnson wrote: > If a || b is true then by > definition a && b will be true. Sorry, that's backwards. If a && b is true then by definition a || b will be true. The rest of the post holds though. -- Pa

Re: generating arrays on the fly

2002-08-27 Thread Sudarshan Raghavan
On 28 Aug 2002, Ramprasad A Padmanabhan wrote: > Thanx > I am not a great master of perl , but have been getting my job done > with perl for the past 2 years. Can u educate me why I cant do 'symbolic > references' in eval('@' .$1 .' = () ') This does not just apply for eval, symbolic reference

Re: conditional statement

2002-08-27 Thread Paul Johnson
On Wed, Aug 28, 2002 at 11:08:14AM +0530, Javeed SAR wrote: > Hi all, > > I am using 2 conditional statements, as follows: > > > > > if (($vbpcount==1) ||($dspcount==1)) > { die "\n\nThe element ($PN) is not allowed to be added to > ClearCase,Because a project already exists.\n"; > } > >

Re: conditional statement

2002-08-27 Thread John W. Krahn
Javeed Sar wrote: > > Hi all, Hello, > I am using 2 conditional statements, as follows: > > if (($vbpcount==1) ||($dspcount==1)) > { die "\n\nThe element ($PN) is not allowed to be added to > ClearCase,Because a project already exists.\n"; > } > > elsif(($vbpcount==1) && ($dspcount==1)) > {d

Re: conditional statement

2002-08-27 Thread Omanakuttan
> if (($vbpcount==1) ||($dspcount==1)) > { die "\n\nThe element ($PN) is not allowed to be added to > ClearCase,Because a project already exists.\n"; > } > > elsif(($vbpcount==1) && ($dspcount==1)) > {die "\n\nThe element ($PN) is not allowed to be added to ClearCase,Because > a project already e

conditional statement

2002-08-27 Thread Javeed SAR
Hi all, I am using 2 conditional statements, as follows: if (($vbpcount==1) ||($dspcount==1)) { die "\n\nThe element ($PN) is not allowed to be added to ClearCase,Because a project already exists.\n"; } elsif(($vbpcount==1) && ($dspcount==1)) {die "\n\nThe element ($PN) is not allowed to b

Re: generating arrays on the fly

2002-08-27 Thread Ramprasad A Padmanabhan
Thanx I am not a great master of perl , but have been getting my job done with perl for the past 2 years. Can u educate me why I cant do 'symbolic references' in eval('@' .$1 .' = () ') On Wed, 2002-08-28 at 03:31, Jeff 'japhy' Pinyan wrote: > On Aug 27, Ramprasad A Padmanabhan said: > > >> i

Re: Newbie Question.

2002-08-27 Thread Omanakuttan
open (FH, $filename) or die $! ; my @arr = ; HTH. Om. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing perldocs

2002-08-27 Thread dizzy74
James Campbell wrote: >Hi all > >Dumb question but... Does anyone know how to print a perldoc page displayed >in the Windows DOS prompt? > > > How about perldoc -f flock > your_file_lock.txt > LPT1 rob -- Civilization is the process of reducing the infinite to the finite. -- To

Re: Slow Postgres Update

2002-08-27 Thread Randal L. Schwartz
> "Rob" == Rob <[EMAIL PROTECTED]> writes: Rob> How can I speed it up some? I'm still new to database programming with Rob> Perl so if you see anything else that I'm doing wrong or could do better Rob> don't hesitate to point it out. [...] Rob> my $dbh = DBI->connect($database, $db_user, ""

Re: sorting logs

2002-08-27 Thread John W. Krahn
Laddo wrote: > > Hi all Hello, > I have a log file which is generated by backup script and i am writing a > perl script to sort the log so as to prepare it to put into mysql > database and iam having a problem in doing that. > > my log file is like this (I have written line numbers for clar

Re: Newbie Question.

2002-08-27 Thread John W. Krahn
From: Ashutosh Jog [mailto:[EMAIL PROTECTED]] > > Hi, Hello, > Another question: > > If I have a hash with entries like these: > > my %hash = ($animals [0]=> [$mammals[0]], $animals[1] => [$mammals[1]]); > > But if the list has like 50 entries in both the $animals & $mammals the can > I do >

Re: sorting logs

2002-08-27 Thread david
you might want to try: #!/usr/bin/perl -w use strict; my $i = 1; my $min = -1; while(<>){ my($n1,$d1,$b1) = /^INCREMENTAL\s+OF\s+(.+?)\s+.*?ON\s+(.+?)\s+.+\s+(\d+)$/i; $i++ if($b1 < $min); $min = $b1; print "\"$d1\",\"TAPE $i\",\"$n1\",\"$b1\"\n"; } david Laddo

RE: sorting logs

2002-08-27 Thread David . Wagner
Here is the output I got: "2002-08-28","Tape 1", "staff", "315825" "2002-08-28","Tape 2", "www.cs", "102860" "2002-08-28","Tape 2", "staff_homepages", "103142" "2002-08-28","Tape 2", "ftp.cs", "103204" "2002-08-28","Tape 2", "local", "103216" "2002-08-28","Tape 2", "Hyper-G", "103236" "2

Re: sorting logs

2002-08-27 Thread Paul Johnson
On Wed, Aug 28, 2002 at 10:59:13AM +1200, LADDO wrote: > Hi all > > I have a log file which is generated by backup script and i am writing a > perl script to sort the log so as to prepare it to put into mysql > database and iam having a problem in doing that. [ snip ] > i can do it with aw

Re: Slow Postgres Update

2002-08-27 Thread Bob Showalter
- Original Message - From: "Rob" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 27, 2002 4:00 PM Subject: Slow Postgres Update > The below updates a database from a very large file but it's rather slow; > How can I speed it up some? I'm still new to database programmi

sorting logs

2002-08-27 Thread LADDO
Hi all I have a log file which is generated by backup script and i am writing a perl script to sort the log so as to prepare it to put into mysql database and iam having a problem in doing that. my log file is like this (I have written line numbers for clarity only ) 1 INCREMENTAL OF staf

RE: Newbie Question.

2002-08-27 Thread Timothy Johnson
I think you can simplify this with a loop: for($i = 0;$i < @animals;$i++){ $hash{$animals[$i]} = $mammals[$i]; } -Original Message- From: Ashutosh Jog [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 2:33 PM To: Timothy Johnson Subject: Re: Newbie Question. Hi, Anoth

Re: generating arrays on the fly

2002-08-27 Thread Jeff 'japhy' Pinyan
On Aug 27, Ramprasad A Padmanabhan said: >> if ($line=~(/^\[\[(\w+)\]\]/)){ >> @$1=(); #this is the line I want to acheive my aim with! >> } > > if ($line=~(/^\[\[(\w+)\]\]/)){ > eval('@' .$1 .' = () ') || warn $@ > } First, don't do that. You're doing symbolic references in effect. Second

Re: Using dynaloader.pm

2002-08-27 Thread Paul Johnson
On Tue, Aug 27, 2002 at 05:03:01PM -0400, Kevin Torres wrote: > I am using bootstrap in dynaloader.pm. Everything works upto the last > instruction of the subroutine &$xs(@args); > > There are are no errors upto that point. $xs gets assigned CODE(0x251f1a4). > > But the very next thing to

Re: Who wants to help a newbie?

2002-08-27 Thread Paul Johnson
On Tue, Aug 27, 2002 at 10:44:42AM -0700, coe smythe wrote: > I'm trying to work up a little script using the > Net::AIM module. However, I don't have a whole lot of > perl knowledge, and have even less knowledge as to how > the module interacts with AIM. > > I'm pretty much just snooping aroun

Re: Newbie Question.

2002-08-27 Thread John W. Krahn
Ashutosh Jog wrote: > > Hello, Hello, > This might be a very simple question, but being a newbie I have to ask. > :) > > How can I copy the line by line contents of a file to a array? > > For eg: @animals should look like > @animals = ('tiger','lion','elephant'); > > And the text file would

Re: using Super in packages

2002-08-27 Thread Paul Johnson
On Tue, Aug 27, 2002 at 10:28:25AM -0700, drieux wrote: > Volks, > > am I just slow or what? I wouldn't go that far ;-) > but when I went to make the method in B1 that C would > inherit to display the inheritence chain, I had thought > I could likewise get away with the 'SUPER' trick a la >

Using dynaloader.pm

2002-08-27 Thread Kevin Torres
I am using bootstrap in dynaloader.pm. Everything works upto the last instruction of the subroutine &$xs(@args); There are are no errors upto that point. $xs gets assigned CODE(0x251f1a4). But the very next thing to happen after &$xs(@args) is executed is a branch to carp.pm. When I run i

Re: Word and Outlook

2002-08-27 Thread Paul Tremblay
On Tue, Aug 27, 2002 at 03:50:56PM -0400, Robin Norwood wrote: > Kirby_Sarah <[EMAIL PROTECTED]> writes: > > > Hi all, > > > > I was wondering, can Perl create and format a Word document using a I don't think there is any module to convert directly to Word. However, there might be a module

Upload.cgi - etc

2002-08-27 Thread Vargas Media
Hi, I have been studying with the O'Reilly book "CGI Programming with Perl" - Chapter 5 page 99 Below is an example of a upload.cgi that utilizes CGI.pm I am not able to get it to work correctly yet and I am trying to find out if it is the directory I am trying to load the file to or a progammatic

Re: Having problems with AppConfig::Getopt module

2002-08-27 Thread Karl Kaufman
FYI... I've worked through my AppConfig/Getopt problems; here's the necessary fix. The latest release of the Getopt::Long (2.32) module is able to handle hash arguments linked to code, but the current AppConfig module (1.52) hasn't yet been synced w/ the fix (so it still suffers from the prob

RE: LISTS OF LISTS - Help please!!

2002-08-27 Thread david
array is not the best data structure for this kind of search operation, but if you insist on using an array, try: my $userinput = "abcd"; my @allfilesystems = (["xxx",1234,5678],["abcd",,]); my @buffer = (); foreach my $i (0 .. $#allfilesystems){ my $flag = 0; foreach my

Re: using Super in packages

2002-08-27 Thread david
Drieux wrote: > > Hence one should only use SUPER in a method if > > a) the method itself is overriding an inherited method > b) you have a clue that in multiple class inheritences > you will find the one you really want? > > > > ciao > drieux > > --- thanks for the follow up and verify a

Re: Word and Outlook

2002-08-27 Thread Robin Norwood
Kirby_Sarah <[EMAIL PROTECTED]> writes: > Hi all, > > I was wondering, can Perl create and format a Word document using a > template and can Perl create draft copies of Emails with (or without) > attachments? I want to automate a report process so that perl generates the > reports (which

Slow Postgres Update

2002-08-27 Thread Rob
The below updates a database from a very large file but it's rather slow; How can I speed it up some? I'm still new to database programming with Perl so if you see anything else that I'm doing wrong or could do better don't hesitate to point it out. #!/usr/bin/perl -w use strict; use DBI; my($

Re: perl interpreter

2002-08-27 Thread zentara
On Tue, 27 Aug 2002 00:14:17 -0700, [EMAIL PROTECTED] (Mark Goland) wrote: >Hi guys, > >I was just wondering is there a perl interpreter that will fit on one floppy >disk ?? You need to make a bootable cd to hold all the libs. Here are instructions for a method I use, which I find easy. You can

RE: install/mail help

2002-08-27 Thread Timothy Johnson
You should be able to send mail using Mail::Sendmail, Net::SMTP, Mail::Sender, or one of a number of other modules. I use Mail::Sender when I want to send an attachment, and Net::SMTP otherwise, personally. Check out http://search.cpan.org. -Original Message- From: Dennis Greenfield [m

RE: Word and Outlook

2002-08-27 Thread Timothy Johnson
A couple of ideas: 1) You can check CPAN to see if there is a module like Spreadsheet::WriteExcel for Word, otherwise your best bet might be to convert a Word Macro into Perl. You can do this with Win32::OLE. Check the documentation for Win32::OLE, and you should see some examples using Excel

Re: Password entry field.

2002-08-27 Thread Kevin Meltzer
As well as the pointer Craig gave, you can also look at the Term::ReadPassword module. Cheers, Kevin On Tue, Aug 27, 2002 at 02:55:41PM -0400, Ravindranath, Sujit ([EMAIL PROTECTED]) said something similar to: > Hi all, > I am using PERL to write a terminal(UNIX) program wherein it prompts the

Re: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread david
Chad Kellerman wrote: > Sorry everybody, > >I have been trying to work on this all day but nothing... > > IF a perl module uses: > connect($sock, sockaddr_in($rport, $raddr)) > or die "Can't connect to $ssh->{host}, port $rport: $!"; > > How do I catch the die() in an eval statemen

Re: Password entry field.

2002-08-27 Thread Craig Moynes/Markham/IBM
perldoc -q password How do I ask the user for a password? (This question has nothing to do with the web. See a different FAQ for that.) There's an example of this in L). First, you put the terminal into "no echo" mode, then just read the password normally. You may do this with an old-style i

Password entry field.

2002-08-27 Thread Ravindranath, Sujit
Hi all, I am using PERL to write a terminal(UNIX) program wherein it prompts the user for some information, including a password field. Now,is there a way I can set this up so that the user-input key-strokes show up as asterisks on the screen ? Thanks Sujit Ravindranath AT&T Wireless Services

Re: LDIF file parsing

2002-08-27 Thread Michael Fowler
On Tue, Aug 27, 2002 at 05:47:09PM +0200, Panel Vincent - A53 wrote: > As my first real script in perl, I would to parse a LDIF file (export format > of an LDAP directory) to get some sort of information of it. The structure > of such a file is something like this (between quotes) : I'd suggest u

Word and Outlook

2002-08-27 Thread Kirby_Sarah
Hi all, I was wondering, can Perl create and format a Word document using a template and can Perl create draft copies of Emails with (or without) attachments? I want to automate a report process so that perl generates the reports (which I do right now into HTML format that I then save a

Re: is there any way to redirect a format to TK::Text

2002-08-27 Thread david
have you try using formline and $^A you might want to try something like: my $var1 = "abcd"; my $var2 = "wxyz"; my $var3 = "1234"; $^A = undef; #-- just in case formline <<"HEADER",$var1,$var2,$var3; -- @<< @ @<<< -

install/mail help

2002-08-27 Thread Dennis Greenfield
Greetings: Recently I installed version 5.6.1 from ActiveState using ppm and now I am curious about sendmail. Does it come preinstalled or can someone tell me where and how to get it. I've been trying to practice with sending email from web pages, but seem to be missing that piece. Thank y

RE: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 1:46 PM > To: [EMAIL PROTECTED] > Subject: Re: eval on a $SIG{KILL}- newbie question > > > Sorry everybody, > >I have been trying to work on this all day but nothing... > > IF a

Who wants to help a newbie?

2002-08-27 Thread coe smythe
I'm trying to work up a little script using the Net::AIM module. However, I don't have a whole lot of perl knowledge, and have even less knowledge as to how the module interacts with AIM. I'm pretty much just snooping around for some one willing to give me a hand who knows something about Net::A

RE: LISTS OF LISTS - Help please!!

2002-08-27 Thread Leon, Yanet I,,DMDCWEST
Actually, the problem with the previous one (very stupid, by the way) was that I wasn't providing the user input. Anyway, the output right now is the following: #./getinfo.pl data02 Filesystem Information: data02-01 How can I print the whole row? So my output will look as I described on my pre

Re: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Chad Kellerman
Sorry everybody, I have been trying to work on this all day but nothing... IF a perl module uses: connect($sock, sockaddr_in($rport, $raddr)) or die "Can't connect to $ssh->{host}, port $rport: $!"; How do I catch the die() in an eval statement; I have been using: eval {

LISTS OF LISTS - Help please!!

2002-08-27 Thread Leon, Yanet I,,DMDCWEST
I have an array which contains the entries below - the output was generated with the following loop: for $r ( 0 .. $#allfilesystems ) { for $c ( 0 .. $#{ $allfilesystems[$r] } ) { print "elt $r $c is $allfilesy

using Super in packages

2002-08-27 Thread drieux
Volks, am I just slow or what? I liked david's illustration yesterday, and dashed off this morning to code up the illustration about overridden method - on the specific order of Connie's original concern, so I had three packages A, B1, C - { base is to the left }. So B1's overriding of A's ret

Re: where to put data files

2002-08-27 Thread Paul Tremblay
On Wed, Aug 21, 2002 at 11:43:43AM -0700, drieux wrote: > On Wednesday, August 21, 2002, at 10:06 , Paul Tremblay wrote: > > > I am writing a script that converts RTF to XML, and this script needs > > to read an external data file to form a hash. I plan to make this > > script available to anyone

Re: Newbie Question.

2002-08-27 Thread Steve Grazzini
Ashutosh Jog <[EMAIL PROTECTED]> wrote: > > This might be a very simple question, but being a newbie I > have to ask. :) > > How can I copy the line by line contents of a file to a array? > > For eg: @animals should look like > @animals = ('tiger','lion','elephant'); > > And the text file wo

RE: Newbie Question.

2002-08-27 Thread Timothy Johnson
That's easy enough. Try something like this: open(INFILE,"zoo.txt"); @animals = ; Perl will automatically dump the entire contents of the file into the array, with each line as an element. But beware! If you try to do this with extremely large files, you can really bog down your program.

Newbie Question.

2002-08-27 Thread Ashutosh Jog
Hello, This might be a very simple question, but being a newbie I have to ask. :) How can I copy the line by line contents of a file to a array? For eg: @animals should look like @animals = ('tiger','lion','elephant'); And the text file would have entries for the same in this order (i.e. one

fileDSN without explicit passwords

2002-08-27 Thread brian gilbert
I'm using ActiveState and Win32::ODBC to connect to an SQL server from our web server, with a connect string like: my($db) = new Win32::ODBC("fileDSN=myodbc.dsn; uid=myID; pwd=mysecret"); But I don't like having the uid and pwd explicitly stated in the script. Isn't that what the file DSN is

Re: LDIF file parsing

2002-08-27 Thread Janek Schleicher
Panel Vincent - A53 wrote at Tue, 27 Aug 2002 17:47:09 +0200: > As my first real script in perl, I would to parse a LDIF file (export format > of an LDAP directory) to get some sort of information of it. The structure > of such a file is something like this (between quotes) : > > " > name: bozo

RE: Best way to save nested data structure.

2002-08-27 Thread Rowan Reid
> > I'm learning as best I can using every book orielly makes. I am > > trying to saved a complex data structure (hash). I'm trying to use > > Berkly DBFile and tie. I am unable to store the file ie > retrieve info > > once I have exited the program. Once I tie a hash toe the file > > acc

LDIF file parsing

2002-08-27 Thread Panel Vincent - A53
As my first real script in perl, I would to parse a LDIF file (export format of an LDAP directory) to get some sort of information of it. The structure of such a file is something like this (between quotes) : " name: bozo surname: the clown address: over here name: denise surname: richard addres

Re: Regexp

2002-08-27 Thread alex chen
"David Samuelsson" <[EMAIL PROTECTED]> ??:[EMAIL PROTECTED] ... > more regexps.. > > $_ comes in this form: > > servername:D:\CC_Storage\Views\EUSDNKG_Madeleine_Tae68_view.vws [uuid 74a6b3b0.d1cd11d4.896e.00:b0:d0:83:b4:9b] > > i want $_ to be just the uuid number that is: 74a6b3b0.d1cd11d4.8

Re: Printing perldocs

2002-08-27 Thread Jackson, Harry
Title: Re: Printing perldocs > -Original Message- > From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] > > James Campbell wrote: > > Hi all > > > > Dumb question but... Does anyone know how to print a > perldoc page displayed > > in the Windows DOS prompt? > > > > I can't see

Re: Printing perldocs

2002-08-27 Thread Ramprasad A Padmanabhan
James Campbell wrote: > Hi all > > Dumb question but... Does anyone know how to print a perldoc page displayed > in the Windows DOS prompt? > > I can't seem to find the html version of a page I need to print. > > Hope one of you can help > cheers > James > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

RE: generating arrays on the fly

2002-08-27 Thread Bob Showalter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 9:57 AM > To: [EMAIL PROTECTED] > Subject: generating arrays on the fly > > > hi, > > what I'm wanting to do is generate an array named after a > string that is > found in a text

RE: generating arrays on the fly

2002-08-27 Thread Nikola Janceski
perhaps a hash of arrays is what you want: if ($line=~(/^\[\[(\w+)\]\]/)){ $HASH{$1} = []; } and you reference the array like push @{ $HASH{'text'} }, "someinfo"; or anyother array functions. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, A

Re: generating arrays on the fly

2002-08-27 Thread Ramprasad A Padmanabhan
[EMAIL PROTECTED] wrote: > hi, > > what I'm wanting to do is generate an array named after a string that is > found in a text file. > > i.e something like this: > if ($line=~(/^\[\[(\w+)\]\]/)){ > @$1=(); #this is the line I want to acheive my aim with! > } > > I know the syntax is wrong, but

generating arrays on the fly

2002-08-27 Thread afarrell
hi, what I'm wanting to do is generate an array named after a string that is found in a text file. i.e something like this: if ($line=~(/^\[\[(\w+)\]\]/)){ @$1=(); #this is the line I want to acheive my aim with! } I know the syntax is wrong, but hopefully it explains what I'm trying to do, a

Re: should i switch to 5.8.0?

2002-08-27 Thread David T-G
Paul, et al -- ...and then Paul Johnson said... % % On Mon, Aug 26, 2002 at 09:22:25AM -0400, David T-G wrote: % % > I see that 5.8 is out... Any thoughts on how stable it is and when we ... % > not to upgrade now... % % It depends what you are upgrading from. If you are running 5.6.1 and %

RE: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 8:58 AM > To: [EMAIL PROTECTED] > Subject: Re: eval on a $SIG{KILL}- newbie question > > > Bob, > Thanks for the responce. I did not realize you can't trap a > $SIG{kill}. > >

Re: perlcc

2002-08-27 Thread zentara
On Mon, 26 Aug 2002 15:05:26 -0400, [EMAIL PROTECTED] (William Ampeh) wrote: >Hello, > >Has anyone experimented with perlcc? > >If so, any pointers to how it works will be appreciated. Yeah, I've experimented with it. It's very buggy. If you are using perl version 5.6 there is a bug with the Dyn

Re: Printing perldocs

2002-08-27 Thread shawn_milochik
If you were to type: perldoc -f chomp to see the info you want, then try this: perldoc -f chomp > chompdoc.txt That will print the results to a text file, which you can read, print, etc. Shawn

Re: "Multidimensional Associative Arrays" <<<--- do they exist ?

2002-08-27 Thread Omanakuttan
$myhash {"23_59_54_20_08_2002"} = [30,20,45] ; my $x = $myhash{"23_59_54_20_08_2002"},"\n" ; for my $i (0..$#{$x}) { print $myhash{"23_59_54_20_08_2002"}->[$i]," " ; } print "\n" ; HTH. Om. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing perldocs

2002-08-27 Thread Felix Geerinckx
on Tue, 27 Aug 2002 12:45:10 GMT, [EMAIL PROTECTED] (James Campbell) wrote: > Dumb question but... Does anyone know how to print a perldoc page > displayed in the Windows DOS prompt? > > I can't seem to find the html version of a page I need to print. > > Hope one of you can help If you are u

Re: Best way to save nested data structure.

2002-08-27 Thread Sudarshan Raghavan
On Tue, 27 Aug 2002, Sudarshan Raghavan wrote: Sorry!! did not read the subject or the mail properly. Ignore my previous post. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Chad Kellerman
Bob, Thanks for the responce. I did not realize you can't trap a $SIG{kill}. I guess the only way around this is to change the perl module. Change it so it doesn't die but return a value and grab that value in the eval statement? thanks again, --chad On Tue, 27 Aug 2002 08:41:31 -0

Re: "Multidimensional Associative Arrays" <<<--- do they exist ?

2002-08-27 Thread Michael Lamertz
On Tue, Aug 27, 2002 at 01:20:32PM +0200, Q wrote: > Greetings. > > Is there such a thing as mutlidimensional associative array ? > > FILE 1 ( Filename = 23_59_54_20_08_2002) > = > > FIELD1FIELD2FIELD3 > 204060 > > > FILE 2 (Filename = 23_59_55_20_08_2002)

Printing perldocs

2002-08-27 Thread James Campbell
Hi all Dumb question but... Does anyone know how to print a perldoc page displayed in the Windows DOS prompt? I can't seem to find the html version of a page I need to print. Hope one of you can help cheers James =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= James Campbell Tel:+44-(0)20-7848-5111 Ema

RE: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 8:33 AM > To: [EMAIL PROTECTED] > Subject: eval on a $SIG{KILL}- newbie question > > > Hello, > I am writing a script on a linux server use Net::SSH::Perl. Every > once in a while

RE: Best way to save nested data structure.

2002-08-27 Thread Nikola Janceski
I learned that you can also use XML::Simple for this task. It's working pretty well for me, but I think I have found a possible bug which I am trying to setup replication steps for. But I think the bug isn't with the module. > -Original Message- > From: Rowan Reid [mailto:[EMAIL PROTECTED

eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Chad Kellerman
Hello, I am writing a script on a linux server use Net::SSH::Perl. Every once in a while the ssh connection to a remote server dies or it just can't connect. the perl module send a $SIG{KILL} to the script when ever this happens. Which isn't what I want. I am trying to put the kill in an e

RE: Best way to save nested data structure.

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Rowan Reid [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 26, 2002 6:51 PM > To: [EMAIL PROTECTED] > Subject: Best way to save nested data structure. > > > > > I'm learning as best I can using every book orielly makes. I > am trying > to saved a comple

Re: "Multidimensional Associative Arrays" <<<--- do they exist ?

2002-08-27 Thread Felix Geerinckx
on Tue, 27 Aug 2002 11:20:32 GMT, [EMAIL PROTECTED] (Q) wrote: > @myFileNameArray = (23_59_54_20_08_2002, 23_59_55_20_08_2002); > @myMultiDimArray = ([20, 40, 60], [30, 20, 45]); > > I guess what I am really asking here is can i combine the two > arrays in such a way that the Filename array beco

"Multidimensional Associative Arrays" <<<--- do they exist ?

2002-08-27 Thread Q
Greetings. Is there such a thing as mutlidimensional associative array ? The reason I ask this is that I intent copy the contents of a time stamped file into one big file which will be used to update fields of a database. I intend using the filename ( remember it is time stamped) and use it as

Problems with SNMP::Multi

2002-08-27 Thread Angerstein
Hello, I have some Questions regarding SNMP::Multi. Does someone have some more documentated Examples? I need pairs of the $result->values and the corresponding $result->varlist item; For example: myrouter.mynet.com: .1.3.6.1.2.1.2.2.1.5.5 = 1550 It would be perfect if I could get the typ

Re: Best way to save nested data structure.

2002-08-27 Thread John W. Krahn
Rowan Reid wrote: > > I'm learning as best I can using every book orielly makes. I am trying > to saved a complex data structure (hash). I'm trying to use Berkly > DBFile and tie. I am unable to store the file ie retrieve info once I > have exited the program. Once I tie a hash toe the file ac

RE: perl interpreter

2002-08-27 Thread Timothy Johnson
You might have better luck just burning what you need to a CD. -Original Message- From: Mark Goland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 12:14 AM To: [EMAIL PROTECTED] Subject: perl interpreter Hi guys, I was just wondering is there a perl interpreter that will fi

is there any way to redirect a format to TK::Text

2002-08-27 Thread alex chen
hi,everyone: i have a trouble in TK,please help me.i have a format like this format ALARMLABEL_TOP = ALARM REPORT ___ NodeName :@||| $node Time :@ ,Priority: @ $time, $priority Alarm_d :@|