Re: searching an array reference

2005-07-16 Thread John W. Krahn
John W. Krahn wrote: Angie Ahl wrote: I've got a way to do this but I thought someone more experienced than me might have a better way. I have a class that is a hash and one of the hash values is an array ref. I'd like to search that array and push to it if a value isn't there. At the moment

Re: $_ and split function...

2005-07-16 Thread John W. Krahn
Vineet Pande wrote: > Hi Hello, > In the following code > > > #!/usr/bin/perl > use warnings; > use strict; > > my $found = 0; > $_ = "Nobody wants to hurt you... 'cept, I do hurt people sometimes, > Case."; > > my $sought = "peo

Re: array

2005-07-16 Thread John W. Krahn
Vineet Pande wrote: > Hi: Hello, > I want to write a code storing in "memory" a list of numerical values > and then asking the user to guess a number, if that number matches one > in memory, program should exit; otherwise keep asking... > > ** > #!/usr/bin/perl >

Re: searching an array reference

2005-07-16 Thread John W. Krahn
Angie Ahl wrote: > Hi List Hello, > I've got a way to do this but I thought someone more experienced than > me might have a better way. > > I have a class that is a hash and one of the hash values is an array ref. > > I'd like to search that array and push to it if a value isn't there. > At the

Re: 0; and 1;

2005-07-16 Thread Wiggins d'Anconia
"Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post." - Sherm Pendley, Mac OS X list [EMAIL PROTECTED] wrote: > Hi , > > I have executed a Perl script from csh[c shell ] and saw that exit > is for shell from where it is invoked . > Exit 100;

Re: update perl, calling sub

2005-07-16 Thread Wiggins d'Anconia
Ing. Branislav Gerzo wrote: > Hi all, > > recently I've updated perl on FreeBSD machine to latest, but my > modules go away, they are not in @INC. I have 2 questions: > 1. is there possibility update perl, without modules going away? > 2. I have some perl CGIs on server, now I have 500 internal se

Re: reading a big file

2005-07-16 Thread Wiggins d'Anconia
Octavian Rasnita wrote: > Hi, > > I need to create a program which reads a file from the LAN, and that file is > continuously updated (kind of log). > The file increases continuously, and it can become very big. > > On every read, I need to read just the lines for the current day (which is > spec

Re: How to transform the XML string to a table

2005-07-16 Thread Wiggins d'Anconia
Anish Kumar K wrote: > Hi All > > I have a varaible in perl which is having > > $output_variable=" > > > > >Search Multiple Courses > >Third Page >Third Page>Sub Page 2 > > > > ";I want to process this variable such that I ca

Re: need to send an XML to templatetool kit

2005-07-16 Thread Wiggins d'Anconia
Anish Kumar K wrote: > Hi > > Can anyone tell how I can send the XML file to a HTML file with perl template > toolkit > > so that in HTML I want to display the datas of XML in a table.. > > or tell some suitable solution > > Thanks > Anish > You've been posting questions here long enough

Re: Perl extensions: Arrays not coming through

2005-07-16 Thread Wiggins d'Anconia
Ernst Rohlicek jun. wrote: > > > Hi everbody, > > I got into Perl yesterday for using a Perl extension for PVM, a parallel > computing environment, but found out that some newer functions were not > yet in it. > > So, I added to the extension, but so far I couldn't figure out wrapping > a more

Download and post in web page pdf file(s)

2005-07-16 Thread Roberts Mr Richard L
Hi, Does anyone know how/where I can resolve scp pdf files (user selected) and display in a web page? thanks -r -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: $_ and split function...

2005-07-16 Thread Moon, John
To: beginners@perl.org Subject: $_ and split function... Hi In the following code #!/usr/bin/perl use warnings; use strict; my $found = 0; $_ = "Nobody wants to hurt you... 'cept, I do hurt people sometimes, Case."; my $sought = "

$_ and split function...

2005-07-16 Thread Vineet Pande
Hi In the following code #!/usr/bin/perl use warnings; use strict; my $found = 0; $_ = "Nobody wants to hurt you... 'cept, I do hurt people sometimes, Case."; my $sought = "people"; foreach my $word (split) { if ($word eq $sought

RE: array

2005-07-16 Thread Moon, John
Subject: array Hi: I want to write a code storing in "memory" a list of numerical values and then asking the user to guess a number, if that number matches one in memory, program should exit; otherwise keep asking... ** #!/usr/bin/perl use warnings; use strict; m

Perl extensions: Arrays not coming through

2005-07-16 Thread Ernst Rohlicek jun.
Hi everbody, I got into Perl yesterday for using a Perl extension for PVM, a parallel computing environment, but found out that some newer functions were not yet in it. So, I added to the extension, but so far I couldn't figure out wrapping a more complex function. The C function pvm_getmbox

array

2005-07-16 Thread Vineet Pande
Hi: I want to write a code storing in "memory" a list of numerical values and then asking the user to guess a number, if that number matches one in memory, program should exit; otherwise keep asking... ** #!/usr/bin/perl use warnings; use strict; my (@memory, $g

Re: searching an array reference

2005-07-16 Thread Peter Rabbitson
> I'd like to search that array and push to it if a value isn't there. > At the moment I'm dereferencing the array, searching/pushing it and > the passing it back to the class as an array ref again. So this mean > copying the array. Code: > > my @used_images = @{$_[0]->{_used_images}}; > foreach (

searching an array reference

2005-07-16 Thread angie ahl
Hi List I've got a way to do this but I thought someone more experienced than me might have a better way. I have a class that is a hash and one of the hash values is an array ref. I'd like to search that array and push to it if a value isn't there. At the moment I'm dereferencing the array, sear

Re: Limit memory used by perl

2005-07-16 Thread Chris Devers
On Thu, 14 Jul 2005, Beast wrote: > I have prototype that should parse big log files (680MB) converted > into nice GUI apps. It's not nice if the machine totaly freeze during > testing. (linux 512MB/2GB swap). Are you trying to read the whole file in at once, or are you trying to read through