RE: [perl #40345] splice question

2006-09-20 Thread Thomas Bätzler
Derek B. Smith [EMAIL PROTECTED] asked: If you really need to do this in place due to memory constraints, I would advise to run the iteration from back to front, i.e. And why would this be? Becasue it does not load the entire data set at once or aka one at a time? grep creates a new list

RE: transition to Perl developer

2006-09-20 Thread Lee Goddard
From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Derek B. Smith wrote: OK CPAN yes I know it is an open source project, but are there task assignments for specific tasks/projects as opposed to submitting a module? So you are looking for an open source project done in Perl that has

RE: Newbie Question

2006-09-20 Thread M K Scott
Hi, I have tried that to no avail. I have also tried a simple match of !~ m/(m|f){1}/ and even put in the code you suggested to read !~ m/^(m|f){1}$/ but this still doesn't work properly. Input of d or T will work to say it is incorrect and input of m or f will be accepted but I was under

RE: Newbie Question

2006-09-20 Thread Lee Goddard
use strict; use warnings; my $string; while (1){ print Please enter 1-5 letters: ; chomp ($string = STDIN); last if $string =~ m/^[a-z]{1,5}$/i; # last if $string =~ m/^\w{1,5}$/; print that is wrongtry again: ; } I think the problem was not the

Modules aiming at displaying mathematical functions on screen?

2006-09-20 Thread SFantar
Hello After searching the cpan.org site for mathematical modules, I did not find a module which can display graphically the result of a function. I want to see a function curve displayed in a graphical window? How can I make it possible in Perl? Thanks in advance for your help. -- To

RE: Modules aiming at displaying mathematical functions on screen?

2006-09-20 Thread Lee Goddard
After searching the cpan.org site for mathematical modules, I did not find a module which can display graphically the result of a function. I want to see a function curve displayed in a graphical window? How can I make it possible in Perl? Thanks in advance for your help. Module names

GD::Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
Hi All I'm trying to use the GD module. for plotting a graph on WINDOWS but my Perl script is crashing. Here is the piece of code which is crashing [Perl Command Line Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience.] use

RE: :Graph...crashing...

2006-09-20 Thread Lee Goddard
I'm trying to use the GD module. for plotting a graph on WINDOWS but my Perl script is crashing. Here is the piece of code which is crashing [Perl Command Line Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience.] use GD::Graph::bars; my

RE: :Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
Hi Lee I tried to search for the GD module through ppm and was unable to find it, so I downloaded the tar file from cpan and installed it manually. Also whan I say remove GD from ppm it says pakage GD not installed - its actually installed. The following is the search result. ppm search GD

RE: :Graph...crashing...

2006-09-20 Thread Lee Goddard
From: Nagasamudram, Prasanna Kumar Hi Lee I tried to search for the GD module through ppm and was unable to find it, so I downloaded the tar file from cpan and installed it manually. Ah, that's the problem: GD is a perl binding (Perl, C and glue) to GD. Do you have a compiler? But -

RE: :Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
Hi Lee I found a solution . I ran ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd; as mentioned in http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Repository That solves everything. Im now curious how your search is showing up GD where as my search does'nt. The

RE: :Graph...crashing...

2006-09-20 Thread Lee Goddard
I found a solution . I ran ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd; as mentioned in http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Repository That solves everything. It's not a bad idea to add Theory5, since Randy who runs it will often build PPMs if you ask

Re: Modules aiming at displaying mathematical functions on screen?

2006-09-20 Thread Mumia W.
On 09/20/2006 05:24 AM, SFantar wrote: Hello After searching the cpan.org site for mathematical modules, I did not find a module which can display graphically the result of a function. I want to see a function curve displayed in a graphical window? How can I make it possible in Perl? Thanks

I need some help with matching something

2006-09-20 Thread Bjorn Van Blanckenberg
I need to find every ocuring b.../b blok in a text, even If this ocurs multiple times on 1 line. example text: bInclus:/b eau, \303\251lectricit\303\251 et bchauffage./b responce should be: bInclus:/b bchauffage./b I tryed some things with perl or shell: echo 'bInclus:/b eau,

linked list in perl

2006-09-20 Thread Christian Stalp
Hello out there, I need a Tipp how I can create a linked ring-list in Perl. I know well that arrays in Perl are already realized as linked list, but what I need is a ring-list. Means that at the last element owns a reference to the first element. Has anybody an idea how to make it?

Re: Modules aiming at displaying mathematical functions on screen?

2006-09-20 Thread Dr.Ruud
SFantar schreef: After searching the cpan.org site for mathematical modules, I did not find a module which can display graphically the result of a function. I want to see a function curve displayed in a graphical window? Beyond that: http://maxima.sourceforge.net/ (Lisp)

RE: I need some help with matching something

2006-09-20 Thread Lee Goddard
I need to find every ocuring b.../b blok in a text, even If this ocurs multiple times on 1 line. If you're doing HTML it's worth looking HTML::TokeParser for a quick and easy and generally reliable means of extracting the contents of the 'bold' element: great POD, too -- this is a slightly

Re: linked list in perl

2006-09-20 Thread Tom Phoenix
On 9/20/06, Christian Stalp [EMAIL PROTECTED] wrote: I need a Tipp how I can create a linked ring-list in Perl. I know well that arrays in Perl are already realized as linked list, but what I need is a ring-list. Means that at the last element owns a reference to the first element. What are

RE: linked list in perl

2006-09-20 Thread Thomas Bätzler
Christian Stalp [EMAIL PROTECTED] asked: I need a Tipp how I can create a linked ring-list in Perl. I know well that arrays in Perl are already realized as linked list, but what I need is a ring-list. Means that at the last element owns a reference to the first element. Has anybody an

[OT] LAMP that is perl

2006-09-20 Thread Beginner
Hi, Sorry for the OT post. I have been looking at CRM (customer relations management) packages and the term LAMP (Linux, Apache, MySql, PHP) keeps appearing. The problem is that PHP is rather slow and perl or mod_perl would be a far better choice. Yet I can't find anything that takes this

Re: Newbie Question

2006-09-20 Thread John W. Krahn
M K Scott wrote: Hi, Hello, I have tried that to no avail. I have also tried a simple match of !~ m/(m|f){1}/ and even put in the code you suggested to read !~ m/^(m|f){1}$/ but this still doesn't work properly. Input of d or T will work to say it is incorrect and input of m or f will

RE: Newbie Question

2006-09-20 Thread M K Scott
Thanks to all who replied - it is working fine now and I am now moving on to the next problemall your help was appreciated and very usefull. I am sure I will be back here soon. Thanks Mark From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Wed

array help

2006-09-20 Thread Sayed, Irfan \(Irfan\)
Hi, if i use one array in foreach loop then can i use same array in another part of the code. I am getting following error while executing perl script. Global symbol @repl1 requires explicit package name at ch_repl_name.pl line 24. can anybody please help me. Regards Irfan.

Re: array help

2006-09-20 Thread Igor Lopes
Global symbol @repl1 requires explicit package name at ch_repl_name.pl line 24. It seems you are using strict, but not declaring @repl1 anywhere. If you post your code will be easier to help. -- Igor Lopes [EMAIL PROTECTED]

perl scalar

2006-09-20 Thread elite elite
how would i create a scalar? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl scalar

2006-09-20 Thread Andy Greenwood
if you use strict; then you'll need to declare it with my. If you don't (and you should think about that decision again) then you can leave off the my. my $variable = somevalue; $ means it's a scalar variable @ is for arrays % is for hashes On 9/20/06, elite elite [EMAIL PROTECTED] wrote:

Non-technical question

2006-09-20 Thread Mathew
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm curious how to pronounce various built-in variables in perl. Like $_ or [EMAIL PROTECTED] Having never heard it spoken and only seeing it in print, I've taken to calling it dunder (Dollar + Underscore). Granted, the way I pronounce it has no

Date and Time Functions

2006-09-20 Thread andrewmchorney
Hello I am looking for some simple perl functions that will return the current date and time in string format. The purpose is to create a file with part of the name being the date and time. Thanks, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Date and Time Functions

2006-09-20 Thread andrewmchorney
Hello I am looking for some simple perl functions that will return the current date and time in string format. The purpose is to create a file with part of the name being the date and time. Thanks, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Non-technical question

2006-09-20 Thread Ricardo SIGNES
* Mathew [EMAIL PROTECTED] [2006-09-20T19:29:53] I'm curious how to pronounce various built-in variables in perl. Like $_ or [EMAIL PROTECTED] Having never heard it spoken and only seeing it in print, I've taken to calling it dunder (Dollar + Underscore). Granted, the way I pronounce it

Re: Non-technical question

2006-09-20 Thread Robin Sheat
On Thursday 21 September 2006 12:18, Ricardo SIGNES wrote:   $;    - dollar semicolon' In my head, I pronounce these ones as 'string-semicolon', but that's a throwback to when I was young, stupid, and coded in BASIC... -- Robin [EMAIL PROTECTED] JabberID: [EMAIL PROTECTED] Hostes alienigeni

Re: Date and Time Functions

2006-09-20 Thread Jeff Pang
Hi, Many of the functions exist on CPAN.One of them is 'strftime' which is coming from POSIX. use POSIX 'strftime'; print strftime %Y-%m-%d,localtime; __END__ You'll get: 2006-09-21 As the same effect as the unix command of 'date +%Y-%m-%d' 's output. Hope it helps. -Original

Re: perl scalar

2006-09-20 Thread Jeff Pang
how would i create a scalar? Hi, Scalar is differenet distinctly from list.In perl both array and hash belong to list,while common variable belong to scalar.When you say, my $varA; our $varB; local $varC; You get the perl variable and they're scalar. Hope I'm correct. -- Jeff Pang

Re: transition to Perl developer

2006-09-20 Thread JupiterHost.Net
I'm not sure what Derek is looking for, either, but have a look at: * bestpractical.com/rt/ An open-source request/bug/job tracker, which is also used as part of the CPAN projcet: rt.cpan.org * www.cpanforum.com Open-source Perl project, linked from every page of CPAN, which has a good

Re: transition to Perl developer

2006-09-20 Thread Derek B. Smith
-- JupiterHost.Net [EMAIL PROTECTED] wrote: I'm not sure what Derek is looking for, either, but have a look at: * bestpractical.com/rt/ An open-source request/bug/job tracker, which is also used as part of the CPAN projcet: rt.cpan.org * www.cpanforum.com Open-source Perl

search POD about AUTOLOAD

2006-09-20 Thread chen li
Hi all, I want to read some information about AUTOLOAD in POD. But I get nothing when I type perldoc -f/-q AUTOLOAD. Any comments? Thanks, Li __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: search POD about AUTOLOAD

2006-09-20 Thread Jeff Pang
I want to read some information about AUTOLOAD in POD. Hi, Got these pieces from Schwartz's book and hope it helps. After Perl searches the inheritance tree and UNIVERSAL for a method, it doesn't just stop there if the search is unsuccessful. Perl repeats the search through the very same

Re: search POD about AUTOLOAD

2006-09-20 Thread John W. Krahn
chen li wrote: Hi all, Hello, I want to read some information about AUTOLOAD in POD. But I get nothing when I type perldoc -f/-q AUTOLOAD. Any comments? perlsub has an Autoloading section: perldoc perlsub Also the AUTOLOAD: Proxy Methods section of: perldoc perltoot And: perldoc

RE: array help

2006-09-20 Thread Sayed, Irfan \(Irfan\)
Here is my code # Perl script to change the replica name use strict; use warnings; # my $fname = /tmp/vob_list1; # open FILE,,$fname or die $!; # my $fname1 = /tmp/repl_list1; # open FILE1,,$fname1 or die $!; my $CT = '/usr/atria/bin/cleartool'; my $MT = '/usr/atria/bin/multitool';

Re: Date and Time Functions

2006-09-20 Thread Owen Cook
On Wed, 20 Sep 2006 [EMAIL PROTECTED] wrote: Hello I am looking for some simple perl functions that will return the current date and time in string format. The purpose is to create a file with part of the name being the date and time. I use something like this

Re: Non-technical question

2006-09-20 Thread Dr.Ruud
Mathew schreef: How would Larry pronounce it? As it. -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response