Re: hit counter

2003-11-12 Thread Octavian Rasnita
As I said, I don't know. - Original Message - From: Andrew Gaffney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 8:55 PM Subject: Re: hit counter Wouldn't these have the same effect? Octavian Rasnita wrote: I don't know, but this is not the right way.

use CGI qw(:cgi-lib :standard);

2003-11-12 Thread Yehezkiel B Syamsuhadi
What does this line mean? use CGI qw(:cgi-lib :standard); I know that use CGI; means to use CGI module but what does qw(:cgi-lib :standard) that follow use CGI mean? Thanks, YBS -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: REMOTE_USER

2003-11-12 Thread Bob Showalter
Colin Johnstone wrote: Gidday All, We are running AIX on an IBM HTTP server with IHS. We are serving static HTML pages. Some of these pages are to be protected. OK. That's the job of the web server, so you need to configure it to protect those pages. With Apache, you use .htaccess files

RE: use CGI qw(:cgi-lib :standard);

2003-11-12 Thread Thomas Bätzler
Yehezkiel B Syamsuhadi [EMAIL PROTECTED] asked: What does this line mean? use CGI qw(:cgi-lib :standard); The qw operator makes a text into a list by splitting at the whitespace. That list is passed to the module as an argument. In CGI.pm's case these arguments are used to specify what

Weekly list FAQ posting

2003-11-12 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email

print values out of a hash - got the faults

2003-11-12 Thread Christiane Nerz
Hi everybody! I got the mistakes - no bugs but simple human errors ;-) My program wasn't working correctly, because two hashes wasn't filled properly and the reason for the miraculous different output of the values of that hash was a simple typo - I typed once hash_fasta1 and the second time

Re: Oracle DBI

2003-11-12 Thread Anton Arhipov
No panic anymore. I was given a wrong database schema. Everything works fine now. Ant. Dan Anderson wrote: I'm struggling with the DBI too, one of the things that my book says is that you can create config files the DBI will use. Is it possible that you have an Oracle config file (perhaps

Re: print values out of a hash

2003-11-12 Thread Christiane Nerz
Nope - 'cause if I print out the values key for key, I get all four: my $array = keys %hash; print $hash{$array[0]}; print\n; print $hash{$array[1]}; print\n; print $hash{$array[2]}; print\n; print $hash{$array[3]}; With the code foreach (keys %hash) { print $hash{$_}; print \n;}

Re: print values out of a hash

2003-11-12 Thread Christiane Nerz
jepp - all four are there.. I really don't understand it. thx so far - I have to finish for today - my little baby-son is crying :-( Jane ... As near as I can tell, the above two chunks of code have identical effects. If you put the first chunk in the program EXACTLY where the foreach() loop

Re: print values out of a hash

2003-11-12 Thread Christiane Nerz
oh nice - like that I get all keys and the corresponding values printed.. But I only wanted to get all values :-) Jane Andrew Gaffney wrote: James Edward Gray II wrote: On Nov 11, 2003, at 1:47 PM, Christiane Nerz wrote: Hi! If I want to print out every value of a hash, what's wrong with doing

RE: Peculiar problem using LWP::UserAgent

2003-11-12 Thread Rajesh Dorairajan
David, I tried this out. Still no luck. Then I tried a small vairation of your code: my ( $Host, $Port ) = @_; my $url = $Host; $url .= :$vesPort if ( $vesPort $vesPort != 80 ); This works Apparently LWP does not like it when the default port is specified in the GET requests in

Re: print values out of a hash - filling the hash

2003-11-12 Thread Christiane Nerz
Good morning! Thx for your help.. The problem seems to lay in filling the hash. But I can't see why. I want to compare two fasta-files, more precisely the IDs of two sets of sequences. Each file looks like: gi|13699918|dbj|BAB41217.1|.

RE: how do I create a image

2003-11-12 Thread Bob Showalter
Ramprasad A Padmanabhan wrote: On Tue, 2003-11-11 at 19:59, James Edward Gray II wrote: On Nov 11, 2003, at 8:23 AM, Ramprasad A Padmanabhan wrote: Thanks for the info Is there an utility which can do this I am not bothered if it is a very heavy code , I am not going to

Matching/replacing

2003-11-12 Thread LoneWolf
I have to parse a big file and I do it line by line to keep stuff going correctly. I am at a point where I need it to go through and replace every with inches and ' with feet, IF item in front of it is a digit (0-9). I have this written in the script to parse it: while ($line =

Re: Matching/replacing

2003-11-12 Thread Andrew Gaffney
LoneWolf wrote: I have to parse a big file and I do it line by line to keep stuff going correctly. I am at a point where I need it to go through and replace every with inches and ' with feet, IF item in front of it is a digit (0-9). I have this written in the script to parse it: while

RE: Matching/replacing

2003-11-12 Thread Bob Showalter
LoneWolf wrote: I have to parse a big file and I do it line by line to keep stuff going correctly. I am at a point where I need it to go through and replace every with inches and ' with feet, IF item in front of it is a digit (0-9). You can use: s/(\d)/$1 inches/g or s/(?=\d)/

question

2003-11-12 Thread Matthias Schraft
Hi, I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. Is perl right for the other parts? How can I do this easyly? Are there any pre-witten programs or modules existing for that? Thanks

Re: Starting Perl

2003-11-12 Thread Dan Anderson
i'd like to say first that i'm using activePerl , under windows. for O'Reilly, i couldn't subscribe or even have the 14 days trial because i don't have a credit card.. :( I have a question, because really i couldn't help myself... You're probably either going to need to pick up a book on

RE: question

2003-11-12 Thread Dan Muey
Hi, Howdy I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. Is perl right for the other parts? How can I do this easyly? Are there any You bet! You could also use the same

Re: Matching/replacing

2003-11-12 Thread Jeff 'japhy' Pinyan
On Nov 12, Rob Dixon said: [EMAIL PROTECTED] wrote: I have this written in the script to parse it: while ($line = OLDFILE) { # $line = $line =~ /^\s*(.*)\s*\n$/; $line =~ s/^ //; $line =~ s/ $//; $line =~ s/\t/|/g; $line =~ s/\s+/ /mg; $line =~ s/^\s*//mg; $line

Re: Re: Matching/replacing

2003-11-12 Thread LoneWolf
Whoops, sorry. Name's Robert The problem even with doing redundent things is that the dedundency's didn't clean up the extra white spaces in each line. I glob in the whole file, bad, I know, but it's what I know and what works, it also gives no overhead on the server and the script takes less

When is Perl 6 coming out?

2003-11-12 Thread Dan Anderson
I saw a book on Perl 6 but I didn't think it was out yet. When is it coming out, and will it support code from 5.0+? Thanks, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: question

2003-11-12 Thread Dillon, John
I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. Is perl right for the other parts? How can I do this easyly? Are there any pre-witten programs or modules existing for that?

RE: question

2003-11-12 Thread Levon Barker
Oh here we go. -Original Message- From: Dillon, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 10:57 AM To: 'Matthias Schraft' Cc: '[EMAIL PROTECTED]' Subject: RE: question I´m new with perl. I need to write a program that reads data out of a form sent via

RE: When is Perl 6 coming out?

2003-11-12 Thread Hanson, Rob
When is it coming out The usual answer is when it is done. It is far from completion, but a lot of progress has been made. My guess is beta in a year... but nobody really knows, and there is no schedule for it. The goal is to do it right, even if it means a very long development cycle. and

Re: When is Perl 6 coming out?

2003-11-12 Thread Wiggins d Anconia
I saw a book on Perl 6 but I didn't think it was out yet. When is it coming out, and will it support code from 5.0+? The standard OSS answer probably applies here, it will be out, when its out... I assume you probably saw O'Reilly's Perl 6 Essentials?

RE: When is Perl 6 coming out?

2003-11-12 Thread Dan Anderson
It is far from completion, but a lot of progress has been made. My guess is beta in a year... but nobody really knows, and there is no schedule for it. The goal is to do it right, even if it means a very long development cycle. That doesn't make me think very highly of O'Reilly if they

Re: Matching/replacing

2003-11-12 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: On Nov 12, Rob Dixon said: [EMAIL PROTECTED] wrote: I have this written in the script to parse it: while ($line = OLDFILE) { # $line = $line =~ /^\s*(.*)\s*\n$/; $line =~ s/^ //; $line =~ s/ $//; $line =~ s/\t/|/g; $line =~

Re: Starting Perl

2003-11-12 Thread Rob Dixon
Dan Anderson wrote: Perl code takes the form of a text file. If you're under windows you'll name your perl files with the .pm extension. Hi Dan. Perl programs conventionally go in *.pl files. Perl modules are in *.pm. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: question

2003-11-12 Thread Dan Muey
I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. Is perl right for the other parts? How can I do this easyly? Are there any pre-witten programs or modules existing for

RE: question

2003-11-12 Thread Tore Aursand
On Wed, 12 Nov 2003 15:56:39 +, Dillon, John wrote: I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. Is perl right for the other parts? How can I do this easyly? Are there any

Re: Re: Matching/replacing

2003-11-12 Thread Rob Dixon
Hi Robert. Robert wrote: The problem even with doing redundent things is that the dedundency's didn't clean up the extra white spaces in each line. I glob in the whole file, bad, I know, but it's what I know and what works, it also gives no overhead on the server and the script takes less

RE: question

2003-11-12 Thread Dillon, John
Original question was: I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. It's partly bcs it's written in English. I know that sounds like Visual Basic. But the queryist is a

RE: question

2003-11-12 Thread Dan Muey
Original question was: I´m new with perl. I need to write a program that reads data out of a form sent via internet and is able to interpret the data. I have written the form in html. It's partly bcs it's written in English. I know that sounds like Visual Basic. But the queryist

Re: print values out of a hash - got the faults

2003-11-12 Thread drieux
On Wednesday, Nov 12, 2003, at 02:15 US/Pacific, Christiane Nerz wrote: Hi everybody! I got the mistakes - no bugs but simple human errors ;-) My program wasn't working correctly, because two hashes wasn't filled properly and the reason for the miraculous different output of the values of that

RE: question

2003-11-12 Thread Dillon, John
Yea, well it's really HTML that's the problem. The question was whether perl was appropriate, not how to do it in perl. But, usefully, if there is anything in the perl documentation that is quite as easy and cross-referenced as the search box on www.php.net then I would like to find it.    

Accesing hash of hashes

2003-11-12 Thread Ravi Malghan
Hello: I am trying to create and access a multidimensional hash. For example the following works == $route {$routeDest} = $cost ; print $routeDest, Cost: $route{$routeDest}\n = But the following does not print the $route{$NODE}{$routeDest} == $route {$NODE}{$routeDest} = $cost;

Re: Accesing hash of hashes

2003-11-12 Thread James Edward Gray II
On Nov 12, 2003, at 11:52 AM, Ravi Malghan wrote: Hello: I am trying to create and access a multidimensional hash. For example the following works == $route {$routeDest} = $cost ; print $routeDest, Cost: $route{$routeDest}\n = But the following does not print the $route{$NODE}{$routeDest}

Re: Accesing hash of hashes

2003-11-12 Thread Dan Anderson
Why not use: $route{$NODE} = {$routeDest = $cost}; Also, check out the perl reference tutorial: http://www.perldoc.com/perl5.8.0/pod/perlreftut.html -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DBI MYSQL

2003-11-12 Thread Larry Sandwick
Update not happening ! I have a script that is running on computer A which is trying to update the database on computer B. The script tries to connect to computer B and fails with the following error. [EMAIL PROTECTED] mysql]$ ./data_loader.pl DBI

Re: DBI MYSQL

2003-11-12 Thread Yannick Warnier
Le mer 12/11/2003 à 19:48, Larry Sandwick a écrit : [EMAIL PROTECTED] mysql]$ ./data_loader.pl DBI connect('webmaster,blackhole','webmaster',...) failed: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) at ./data_loader.pl line 8 Does the comma standing between webmaster

problem deleting record in a text file

2003-11-12 Thread g . lams
Hi all, I'm new to perl (that's why I'm here :-). I'm building a few cgis allowing me to add, modify, delete users in a text file (perl version 5.8.0 on a redhat 8 machine). So far, I've been able to create the form and the perl scripts to add users and verify their existence. I'm now trying

Re: DBI MYSQL

2003-11-12 Thread Yannick Warnier
Le mer 12/11/2003 à 19:48, Larry Sandwick a écrit : [EMAIL PROTECTED] mysql]$ ./data_loader.pl DBI connect('webmaster,blackhole','webmaster',...) failed: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) at ./data_loader.pl line 8 Try with a semi-column instead of the

RE: DBI MYSQL

2003-11-12 Thread Dan Muey
Le mer 12/11/2003 à 19:48, Larry Sandwick a écrit : [EMAIL PROTECTED] mysql]$ ./data_loader.pl DBI connect('webmaster,blackhole','webmaster',...) failed: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) at ./data_loader.pl line 8 Does the comma standing between

RE: DBI MYSQL

2003-11-12 Thread Dan Muey
DBI connect('webmaster,blackhole','webmaster',...) failed: Access denied for user: '[EMAIL PROTECTED]' (Using password: YES) at ./data_loader.pl line 8 Try with a semi-column instead of the comma: $dsn = DBI:mysql:database=webmaster;host=blackhole; While you're at it try:

RE: problem deleting record in a text file

2003-11-12 Thread Dan Muey
Hi all, Howdy I'm now trying to delete one user/record inside my text file. You will find below the script I wrote. Actually the temporary file is created the way it should be but I didn't succeed in renaming it to users.dat, saying no such file or directory. This should be not

Re: print values out of a hash

2003-11-12 Thread John W. Krahn
[ Please do not top-post. TIA ] Christiane Nerz wrote: Nope - 'cause if I print out the values key for key, I get all four: my $array = keys %hash; $array is a scalar and holds a single value. It is not related to @array in any way. print $hash{$array[0]}; print\n; print

Fw: question

2003-11-12 Thread John Dillon
perldoc What he means is http://www.perldoc.com/ or something else, like something on c: or a terminal window. This is good. I've learnt something...like when perl people say something, stick it in google and see what comes up. Let's see how the search for (web) solutions compares between

RE: question

2003-11-12 Thread Tim Johnson
I think what you're looking for is this, from perldoc -f pop: pop ARRAY pop Pops and returns the last value of the array, shortening the array by one element. Has an effect similar to $ARRAY[$#ARRAY--] If there are no elements in the array,

RE: question

2003-11-12 Thread Dan Muey
perldoc What he means is http://www.perldoc.com/ or something else, like something on c: or a terminal window. This is good. I've learnt something...like when perl people say something, stick it in google and see what comes up. And you asked me to turn my irritation off? Why must you

Re: QUESTION

2003-11-12 Thread Rob Dixon
To others who have posted on this thread, I had so much trouble working out who was saying what to whom that I gave up. Why are all of the posts at the top level instead of beneath the items that they corresponded to? I am left feeling that there is something that I could have learned beneath

Re: question

2003-11-12 Thread George Schlossnagle
On Nov 12, 2003, at 2:44 PM, John Dillon wrote: perldoc What's the whole point of this thread? That if you look up language keywords (array) and functions by name (array_pop) that you get more relevant information from the language that uses those exact keywords? PHP has wider web deployment

Re: DBI MYSQL

2003-11-12 Thread Tore Aursand
On Wed, 12 Nov 2003 13:48:26 -0500, Larry Sandwick wrote: #! /usr/bin/perl Always: use strict; use warnings; use DBD::mysql; No need to. DBI will take care of this (when you declary the database type to be 'mysql'). $dsn = DBI:mysql:webmaster,blackhole; my $dsn =

Re: problem deleting record in a text file

2003-11-12 Thread Rob Dixon
G Lams wrote: I'm new to perl (that's why I'm here :-). I'm building a few cgis allowing me to add, modify, delete users in a text file (perl version 5.8.0 on a redhat 8 machine). So far, I've been able to create the form and the perl scripts to add users and verify their existence. I'm now

Re: Fw: question

2003-11-12 Thread Dan Anderson
Just because a function is named foo in PHP doesn't mean it's named foo in perl. As a matter of fact Perl has: pop -- returns the top of an array and deletes it -- like array_pop push -- puts something into an array shift -- returns the bottom of the array

Re: question

2003-11-12 Thread George Schlossnagle
On Nov 12, 2003, at 3:53 PM, Dan Anderson wrote: It's actually kind of interesting. If you look at what PHP is trying to do with PHP 5 it is basically trying to copy a lot of Perl's object oriented system. That's really far from the truth. You could accuse it of trying to copy Java's oo model

RE: DBI MYSQL

2003-11-12 Thread Dan Muey
$dsn = DBI:mysql:webmaster,blackhole; This comma still throws me. Try DBI:mysql:webmaster:blackhole Also if you do this from the command line what happens after you put in the password you have in your script? $ mysql -u yourusernamehere -p -h blackhole webmaster What Tore said is true!

Re: question

2003-11-12 Thread Dan Anderson
On Wed, 2003-11-12 at 15:57, George Schlossnagle wrote: On Nov 12, 2003, at 3:53 PM, Dan Anderson wrote: It's actually kind of interesting. If you look at what PHP is trying to do with PHP 5 it is basically trying to copy a lot of Perl's object oriented system. That's really far

Re: question

2003-11-12 Thread George Schlossnagle
On Nov 12, 2003, at 4:02 PM, Dan Anderson wrote: On Wed, 2003-11-12 at 15:57, George Schlossnagle wrote: On Nov 12, 2003, at 3:53 PM, Dan Anderson wrote: It's actually kind of interesting. If you look at what PHP is trying to do with PHP 5 it is basically trying to copy a lot of Perl's object

Weekly list FAQ posting

2003-11-12 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

not on topic but relevant to list

2003-11-12 Thread DrOwl
I recently changed the email address i use for this list and posted a question, i have never use this email address before and now i receiving regular spam to this address Is it Just me or has every one started to receive a lot of spam on address used for this

Re: not on topic but relevant to list

2003-11-12 Thread Casey West
It was Wednesday, November 12, 2003 when [EMAIL PROTECTED] took the soap box, saying: : I recently changed the email address i use for this list and posted a : question, i have never use this email address before and now i : receiving regular spam to this address Is it Just me or has every one :

RE: not on topic but relevant to list

2003-11-12 Thread Dan Muey
I recently changed the email address i use for this list and posted a question, i have never use this email address before and now i receiving regular spam to this address Is it Just me or has every one started to receive a lot of spam on address used for this list? A

Re: question

2003-11-12 Thread John Dillon
Your complete laziness in researching the answers to any of the questions you pose says much more about your apparent work ethic than it does about Perl's documentation. All of those questions can be easily answered with a) a bit of research on the web or b) a quick look in the Perl

[ADMIN] Re: question

2003-11-12 Thread Casey West
It was Wednesday, November 12, 2003 when John Dillon took the soap box, saying: : Your complete laziness in researching the answers to any of the : questions you pose says much more about your apparent work ethic than : it does about Perl's documentation. All of those questions can be :

Re: question

2003-11-12 Thread George Schlossnagle
On Nov 12, 2003, at 5:30 PM, John Dillon wrote: Of 24 hours, 7.5 sleeping (thinking) (=16.5), 1.5 travelling (sleeping) )=(15), 7.5 working (less 1.5 hours at the coffee machine) (=7.5), 7.5 hours at work (not perl), that leaves -10 minutes to crap and -2 hours a day to research perl. If you're

RE: question

2003-11-12 Thread Tim Johnson
I know I've been as guilty of prolonging these threads as anyone in the past, but can we just cut this one short, or at least stop copying the list? This is starting to happen a little too much. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: not on topic but relevant to list

2003-11-12 Thread Casey West
It was Wednesday, November 12, 2003 when [EMAIL PROTECTED] took the soap box, saying: : hum could we not get a nice topic prefix added to the list? : it would make it a lot easy to make mail filters that could kill all mail : going to this address, not from the list.? No, we won't be doing that.

Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Dan Anderson
I am using the following code and keep getting a message that says Can't use an undefined value as a hash reference. I'm completely lost trying to debug it because the line in question is a }. I was wondering if any guru could spot some newbie idiocy in my code. I am, of course, using strict

RE: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Dan Muey
I am using the following code and keep getting a message that says Can't use an undefined value as a hash reference. I'm completely lost trying to debug it because the line in question is a }. I was wondering if any guru could spot some There are many references , what line number does

Re: Fw: question

2003-11-12 Thread Tore Aursand
On Wed, 12 Nov 2003 19:44:02 +, John Dillon wrote: whereas php started as a HTML manipulation language and is good for database interaction, for which arrays are important. In which way are arrays _important_ for database interaction? The important things when dealing with databases is to

RE: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Dan Anderson
On Wed, 2003-11-12 at 18:30, Dan Muey wrote: I am using the following code and keep getting a message that says Can't use an undefined value as a hash reference. I'm completely lost trying to debug it because the line in question is a }. I was wondering if any guru could spot some

getting remote image sizes with image::size lwp

2003-11-12 Thread Matthew Galaher
I am trying to get the width and height attributes of jpg's and gif's on a remote server. I have found Image::Size and LWP but am unable to put them together so that I can open an http path (e.g. http://wwwfoobar.com/dirname/dirname/dirname/images/111203.gif) and print out the image size. Any help

RE: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Jeff 'japhy' Pinyan
On Nov 12, Dan Anderson said: while (my %hash = %{ shift (@columns) }) { ... } Here is the problem. When @columns is empty, it returns undef, and you can't do %{ +undef }. So, do this: while (my $href = shift @columns) { # then use $href-{...} # or do:

Counting (easy!)

2003-11-12 Thread Trent Rigsbee
I'm sure this is easy but I'm a newbie. I was doing control statements (for, while,etc.) like this: for ($count = 1; $count = 5; $count++) { print $count\n; } What I wanted to do was to make each number appear in sequence like you see in a countdown (or

RE: Counting (easy!)

2003-11-12 Thread Tim Johnson
Try using the \b character to erase your output. -Original Message- From: Trent Rigsbee [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 5:06 PM To: [EMAIL PROTECTED] Subject: Counting (easy!) I'm sure this is easy but I'm a newbie. I was doing control statements (for,

Multi-demensional, multi-key hash : Help :(

2003-11-12 Thread Jason Normandin
Hey Group I am new to hashes, so please be kind : ) I am trying to create a hash of hash's with the following characteristics: 1. The outer hash has a unique key called $ELEMENT 2. The value of the outer hash is a key to the innner hash called $DATE 3. The value of the inner hash is a value

Re: Counting (easy!)

2003-11-12 Thread david
Trent Rigsbee wrote: I'm sure this is easy but I'm a newbie. I was doing control statements (for, while,etc.) like this: for ($count = 1; $count = 5; $count++) { print $count\n; } What I wanted to do was to make each number appear in sequence

Re: not on topic but relevant to list

2003-11-12 Thread drieux
On Wednesday, Nov 12, 2003, at 15:25 US/Pacific, Casey West wrote: It was Wednesday, November 12, 2003 when [EMAIL PROTECTED] took the soap box, saying: : hum could we not get a nice topic prefix added to the list? : it would make it a lot easy to make mail filters that could kill all mail :

Re: Counting (easy!) (YES!!)

2003-11-12 Thread Trent Rigsbee
I think I figured it out! A FIRST!! for ($i = 1; $i = 5; $i++){ sleep 1; print $i\n; } I prints out like this: 1...2...3...4...5 YES!! Thanks everyone! :-) From: Trent Rigsbee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Counting (easy!) Date: Thu, 13 Nov 2003 01:05:37

RE: Multi-demensional, multi-key hash : Help :(

2003-11-12 Thread Tim Johnson
There are many ways to go about it, but here is one way: #to enter the info: my %errHash; #the initial hash $errHash{Jason} = []; #each hash element is an array #each element of the array is a hash push @{$errHash{Jason}},{date = Jun1, 2003,error = No Data}; #to

Re: Multi-demensional, multi-key hash : Help :(

2003-11-12 Thread Dan Anderson
I'm still a newbie @ references and data structures myself, but I've found the following web pages useful: http://www.perldoc.com/perl5.8.0/pod/perlreftut.html http://www.perldoc.com/perl5.8.0/pod/perldsc.html http://www.perldoc.com/perl5.8.0/pod/perllol.html And, as always, by recursively

RE: Counting (easy!) (YES!!)

2003-11-12 Thread Tim Johnson
Wouldn't that print out 1 2 3 4 5 ? -Original Message- From: Trent Rigsbee [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 6:13 PM To: [EMAIL PROTECTED] Subject: Re: Counting (easy!) (YES!!) I think I figured it out! A FIRST!! for ($i = 1; $i = 5; $i++){ sleep

Re: not on topic but relevant to list

2003-11-12 Thread DrOwl
At 02:00 13/11/2003, you wrote: On Wednesday, Nov 12, 2003, at 15:25 US/Pacific, Casey West wrote: It was Wednesday, November 12, 2003 when [EMAIL PROTECTED] took the soap box, saying: : hum could we not get a nice topic prefix added to the list? : it would make it a lot easy to make mail

RE: Counting (easy!) (YES!!)

2003-11-12 Thread Charles K. Clarkson
Trent Rigsbee [EMAIL PROTECTED] wrote: : : I think I figured it out! A FIRST!! : : for ($i = 1; $i = 5; $i++){ : sleep 1; : print $i\n; : } As you move into larger programs and scripts it is a good idea to always use strict and warnings. use strict; use warnings; After

Re: Counting (easy!)

2003-11-12 Thread Kevin Old
On Wed, 2003-11-12 at 20:05, Trent Rigsbee wrote: I'm sure this is easy but I'm a newbie. I was doing control statements (for, while,etc.) like this: for ($count = 1; $count = 5; $count++) { print $count\n; } What I wanted to do was to make each

Re: Counting (easy!)

2003-11-12 Thread drieux
On Wednesday, Nov 12, 2003, at 18:07 US/Pacific, david wrote: [..] like count down from 5 to 1 slowly in a single row? try: [panda]# perl -e '$|=1; print @{[6-$_]}\r and sleep(1) for(1..5)' david Minor Nit, that \r will not actually go out 54321 rather pleasantly returns the cursor to the

Re: Counting (easy!)

2003-11-12 Thread Tore Aursand
On Thu, 13 Nov 2003 01:05:37 +, Trent Rigsbee wrote: for ($count = 1; $count = 5; $count++) { print $count\n; } This is very C'ish. In Perl we tend to: for ( 1..5 ) { print $_ . \n; # sleep( 1 ); } Uncomment the sleep() thing if you want Perl to sleep for 1 second

Re: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Tore Aursand
On Wed, 12 Nov 2003 18:29:01 -0500, Dan Anderson wrote: I'm completely lost trying to debug it because the line in question is a }. Well. I'm totally lost, too. There's a lot of things in the code which you can improve to make it more fail-safe, but for now: What line are you referring to?

Re: Multi-demensional, multi-key hash : Help :(

2003-11-12 Thread John W. Krahn
Jason Normandin wrote: Hey Group Hello, I am new to hashes, so please be kind : ) I am trying to create a hash of hash's with the following characteristics: 1. The outer hash has a unique key called $ELEMENT 2. The value of the outer hash is a key to the innner hash called $DATE 3.

Re: When is Perl 6 coming out?

2003-11-12 Thread Randal L. Schwartz
Dan == Dan Anderson [EMAIL PROTECTED] writes: Dan That doesn't make me think very highly of O'Reilly if they /already/ Dan have a copy of a book on Perl 6 in stores. Quite the contrary, I'll suggest. The people who wrote the Perl 6 book are deeply involved in the core of creating Perl 6. It's

Re: Starting Perl

2003-11-12 Thread Randal L. Schwartz
Rob == Rob Dixon [EMAIL PROTECTED] writes: Rob Perl programs conventionally go in *.pl files. No. Only on broken architectures that demand it (read: windows). On Unix, Perl programs have no extension, any more than cat has an extension. Why should the user care what the implementation

setting data in arays from a file

2003-11-12 Thread Ken Cole
Hi ALL, I have GDGraph installed and is working well on a RH 7.3 box. Now what I need to do is write some perl code to read in some data from a file that gets stored in arrays like this is hardwired. $data = ([

Re: When is Perl 6 coming out?

2003-11-12 Thread Dan Anderson
O'Reilly is very smart for getting a Perl6 book by key people out there. Nothing to be negative about it. My apologies then. I thought it might be the *final* book -- i.e. half bake -- like all too many computer books which come out based on alpha and beta versions. -Dan -- To unsubscribe,

Re: Counting (easy!)

2003-11-12 Thread John W. Krahn
Trent Rigsbee wrote: I'm sure this is easy but I'm a newbie. I was doing control statements (for, while,etc.) like this: for ($count = 1; $count = 5; $count++) { print $count\n; } In Perl that is usually written as: for $count ( 1 .. 5 ) {

Re: print values out of a hash - filling the hash

2003-11-12 Thread John W. Krahn
Christiane Nerz wrote: Good morning! Hello, Thx for your help.. The problem seems to lay in filling the hash. But I can't see why. I want to compare two fasta-files, more precisely the IDs of two sets of sequences. I take it that the ID is everything between ' ' and \n? Each

Re: print values out of a hash

2003-11-12 Thread R. Joseph Newton
Christiane Nerz wrote: Andrew Gaffney wrote: James Edward Gray II wrote: What you probably want is: foreach (keys %hash) { print $_ = $hash{$_}\n; } oh nice - like that I get all keys and the corresponding values printed.. But I only wanted to get all values :-) Jane Maybe