Re: Matching/replacing

2003-11-13 Thread R. Joseph Newton
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: >

validate email chars

2003-11-13 Thread perl
Can someone help me with validating email address chars? I think I have the back part ok. I just need to verify the front of the @ sign to have atleast 4 chars, start with a-Z allows \w\-\. ie: [EMAIL PROTECTED] $email ~ /^[a-zA-Z][\w\-\.]{3,[EMAIL PROTECTED]/ thanks

Re: Matching/replacing

2003-11-13 Thread R. Joseph Newton
LoneWolf wrote: > > Here's the cleanup script as it stands right now. The problem with the file > that comes out is leading white space after each | > Then focus on the pipe. $_ =~ s/\s*\|\s*//g; Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

regex - validate email chars help

2003-11-13 Thread perl
Can someone help me with validating email chars? I just need to verify the fron of the @ sign. Will the below ensure something like [EMAIL PROTECTED] $email ~ /^[a-zA-Z][\w\-\.]{3,[EMAIL PROTECTED]/ thanks - eMail solutions by http://www.swanmail.com

GD-png error

2003-11-13 Thread Ramprasad A Padmanabhan
I finally got GD installed on my machine , linux redhat 7.2 and perl 5.8.0 with libgd.so.2.0.12 I tried to write a simple GD script copied from the perldoc I get this error gd-png: fatal libpng error: zlib error gd-png error: setjmp returns error condition PNG This does not seem to be a perl erro

Re: question

2003-11-13 Thread R. Joseph Newton
"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 pre-witten programs or modul

Re: setting data in arays from a file

2003-11-13 Thread Ramprasad A Padmanabhan
Ken Cole wrote: 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 = ([ ["1st","2nd",

Re: regex - validate email chars help

2003-11-13 Thread Ramprasad A Padmanabhan
[EMAIL PROTECTED] wrote: Can someone help me with validating email chars? I just need to verify the fron of the @ sign. Will the below ensure something like [EMAIL PROTECTED] $email ~ /^[a-zA-Z][\w\-\.]{3,[EMAIL PROTECTED]/ thanks I think you have the soln already In your script you could do

Re: question

2003-11-13 Thread R. Joseph Newton
"Dillon, John" wrote: > 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 w

Re: not on topic but relevant to list

2003-11-13 Thread Ramprasad A Padmanabhan
Just dont use mail use a newsreader to use this group pointed at nntp.perl.org Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: When is Perl 6 coming out?

2003-11-13 Thread km
Hi all, i am just curious -- is perl 6 coming with a compiler ? thanks, regards, KM On Wed, Nov 12, 2003 at 07:53:17PM -0800, Randal L. Schwartz wrote: > > "Dan" == Dan Anderson <[EMAIL PROTECTED]> writes: > > Dan> That doesn't make me think very highly of O'Reilly if they /already/ > Dan>

Threading In List Replies [Re: QUESTION]

2003-11-13 Thread R. Joseph Newton
[This new thread concerning an issue raised in the "question" thread initiated with <[EMAIL PROTECTED]> was broken off by beginning a new message to eliminate references, then pasting in relevant material from the other thread.] Rob Dixon wrote: > To others who have posted on this thread, I had s

Re: regex - validate email chars help

2003-11-13 Thread perl
Thanks for the response. I think I picked up on the backslash \@ would be something that was off. I didn't use the \w in some of those areas because I didn't want the numbers or underscore. Anyway what is soln? -fw > [EMAIL PROTECTED] wrote: >> Can someone help me with validating email chars? >

Re: When is Perl 6 coming out?

2003-11-13 Thread R. Joseph Newton
Dan Anderson wrote: > > 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 h

Re: Accesing hash of hashes

2003-11-13 Thread R. Joseph Newton
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: Threading In List Replies [Re: QUESTION]

2003-11-13 Thread perl
Now that you explained all that, should I reply or reply all? ie - this message does a reply all as: To: "R. Joseph Newton" <[EMAIL PROTECTED]> CC: Beginners--Perl <[EMAIL PROTECTED]>, Rob Dixon <[EMAIL PROTECTED]> Subj: Re: Threading In List Replies [Re: QUESTION] I did a reply all. Please

Re: problem deleting record in a text file

2003-11-13 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > Hi all, > > I'm new to perl (that's why I'm here :-). ...and you are getting your first opbject lesson: use strict; use warnings; > > $tmp_file="users.tmp"; > > open(TMPDAT, ">$tmp_file") || die ("Could not open temporary file!"); Note $tmp_file > rename ($temp_file,

Re: Counting (easy!) - select???

2003-11-13 Thread Christiane Nerz
quite interesting chunk of code - but what the hell does select does here? Yeah - I rtfm - but didn't understand it - maybe one could explain it in more simple words? Jane Kevin Old wrote: What I wanted to do was to make each number appear in sequence like you see in a countdown (or up, in

Re: GD-png error

2003-11-13 Thread Ramprasad A Padmanabhan
Ramprasad A Padmanabhan wrote: I finally got GD installed on my machine , linux redhat 7.2 and perl 5.8.0 with libgd.so.2.0.12 I tried to write a simple GD script copied from the perldoc I get this error gd-png: fatal libpng error: zlib error gd-png error: setjmp returns error condition PNG This

Re: Fw: question

2003-11-13 Thread Chuck Fox
[EMAIL PROTECTED] wrote: 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. I'd love to see examples on what Perl can't do compared to PHP. One of my biggest compl

answers to my yesterdays question

2003-11-13 Thread Matthias Schraft
Hi, thanks for answering my yesterdays "question" in this good and friendly way - to all of you who answered. Matt -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net

Re: not on topic but relevant to list

2003-11-13 Thread drowl
> Just dont use mail > > use a newsreader to use this group pointed at nntp.perl.org > > Ram > Thanks what a excellent idea, all tho i fear it will not save me now. Does any one know of a good news reader i can install on my web-site? one written in Perl would be nice ;) > > -- > To unsubscribe,

RE: setting data in arays from a file

2003-11-13 Thread Ken Cole
Cool, Thanks very much. Ken > -Original Message- > From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED] > Sent: Thursday, 13 November 2003 5:45 PM > To: Ken Cole > Cc: [EMAIL PROTECTED] > Subject: Re: setting data in arays from a file > > > Ken Cole wrote: > > Hi ALL, > > > > I hav

invoking external programs

2003-11-13 Thread g . lams
Hi I'm actually building a web interface to a news group server (INN). One of the feature is to allow a few users to create and delete newsgroups from the web. Basically, using CGI.pm, I retrieve the newsgroup's name, whether the user ask for a creation or a deletion of a newsgroup, and launch

remote telnet

2003-11-13 Thread Rogerio Agostinho
My grreting I m developing a script that will send telnet commands to a telnet Server, I m getting to send all the commands but I never know if that was sucefull done or notI would like to know if it is possible to know if I can figure when my commads done was sucefull executed. Other problem

I forgot to send my code

2003-11-13 Thread Rogerio Agostinho
Sorry I forgot to send my script code so it d make things easier to figure what I m doing sub cmdLSActivity { my $pwd = $FTP->Pwd(); $pwd =~ s|/|\\|g; my $pathViewDeliver = $dirViewServ . $pwd; $telnet->cmd("cleartool lsactivity -s -view $viewDesenv"); print $telnet->getlines(all)

RE: Counting (easy!) - select???

2003-11-13 Thread Bob Showalter
Christiane Nerz wrote: > Kevin Old wrote: > ... > > select undef, undef, undef, 0.25 or print $_ > > for 1 .. 5; > ... > quite interesting chunk of code - but what the hell does select does > here? Yeah - I rtfm - but didn't understand it - maybe one could > explain it in more simple words? It's

Re: validate email chars

2003-11-13 Thread Wiggins d Anconia
> Can someone help me with validating email address chars? > > I think I have the back part ok. I just need to verify the front of the @ > sign to have atleast 4 chars, start with a-Z allows \w\-\. > > ie: [EMAIL PROTECTED] > > $email ~ /^[a-zA-Z][\w\-\.]{3,[EMAIL PROTECTED]/ > If you know

Re: Counting (easy!) - select???

2003-11-13 Thread Rob Dixon
"Bob Showalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christiane Nerz wrote: > > Kevin Old wrote: > > ... > > > select undef, undef, undef, 0.25 or print $_ > > > for 1 .. 5; > > ... > > quite interesting chunk of code - but what the hell does select does > > here? Yeah -

Re: invoking external programs

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 5:26 AM, [EMAIL PROTECTED] wrote: [snip - problem description] If the server successfully performed the command, ctlinnd will exit with a status of zero and print the reply on standard input. If the server could not perform the command (for example, it was told to remove a

Re: remote telnet

2003-11-13 Thread Wiggins d Anconia
> > My grreting > > I m developing a script that will send telnet commands to a telnet > Server, I m getting to send all the commands but I never know if that > was sucefull done or notI would like to know if it is possible to > know if I can figure when my commads done was sucefull execut

Re: Counting (easy!) - select???

2003-11-13 Thread Kevin Old
On Thu, 2003-11-13 at 09:33, Rob Dixon wrote: > "Bob Showalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Christiane Nerz wrote: > > > Kevin Old wrote: > > > ... > > > > select undef, undef, undef, 0.25 or print $_ > > > > for 1 .. 5; > > > ... > > > quite interesting chunk

Version differences

2003-11-13 Thread Sachin Mathur
Hello Guys, I Wanted to know what are the differences in version 5.005 and version v.5.8.0 of perl . please let me know where can I find this info thanks sachin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: When is Perl 6 coming out?

2003-11-13 Thread Wiggins d Anconia
Please don't top post... > Hi all, > i am just curious -- is perl 6 coming with a compiler ? This is a rather vague post, how do you really mean? Essentially it is just not that simple, which is why the book is a good resource for people to find out what Perl 6 is really all about, as it is a

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

2003-11-13 Thread R. Joseph Newton
Dan Anderson wrote: > > There are many references , what line number does it say > > is evil and which line below is that? > > Thanks for your help, I have put a -right here - in the code... > > } > $SQL .= "\n"; > } > #-right here-- >

Re: Version differences

2003-11-13 Thread Wiggins d Anconia
> Hello Guys, > I Wanted to know what are the differences in version 5.005 and version > v.5.8.0 of perl . please let me know where can I find this info perldoc perldelta Will in general tell you the significant changes in the version you are using compared to a previous significant version. p

Re: getting remote image sizes with image::size lwp

2003-11-13 Thread R. Joseph Newton
Matthew Galaher wrote: > 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 >

RE: Counting (easy!)

2003-11-13 Thread Dan Muey
> In Perl that is usually written as: > > for $count ( 1 .. 5 ) { > print "$count\n"; > } Or even easier: for(1..5) { print; } Or if you nee the newline: for(1..5) { print "$_\n"; } HTH DMuey > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: validate email chars

2003-11-13 Thread Tore Aursand
On Wed, 12 Nov 2003 23:05:53 -0800, perl wrote: > Can someone help me with validating email address chars? This is a FAQ: perldoc -q "valid mail" -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Can't not locate object method "isadmin" via package "Noc1"

2003-11-13 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hello all, I just added a new method called isadmin to existing and working module Noc1.pm And use this new added method in my index.html like this use Noc1; my $noc = new noc1; my public = noc->ispublic(); my $admin = noc->isadmin(); if ($admin) { blah blah blah} When i tried to access ind

Re: When is Perl 6 coming out?

2003-11-13 Thread Dan Anderson
> You object to the idea of hitting the ground running? No...actually I replied to another poster on this matter. Sometimes computer books come out based on an Alpha or Beta version -- which is nice unless there have been significant changes, in which case it can be a confusing waste of money. -

RE: When is Perl 6 coming out?

2003-11-13 Thread Thomas Bätzler
km <[EMAIL PROTECTED]> asked: > i am just curious -- is perl 6 coming with a compiler ? That depends on your definition of compiler. It certainly has a compiler that creates byte code, just as all of the current Perl versions. I don't know wether it will have a compiler like PerlEx bundled. Wha

RE: invoking external programs

2003-11-13 Thread Thomas Bätzler
Hi, [EMAIL PROTECTED] <[EMAIL PROTECTED]> asked: > I'm actually building a web interface to a news group server (INN). > One of the feature is to allow a few users to create and > delete newsgroups from the web. Hopefully only for your local news hierarchy ;-) > Normally, from the shell, I woul

RE: Can't not locate object method "isadmin" via package "Noc1"

2003-11-13 Thread Dan Muey
> I just added a new method called isadmin to existing and > working module Noc1.pm Did you create Noc1 ??? > > And use this new added method in my index.html like this index.html ??? Hows' that work? > > use Noc1; > my $noc = new noc1; > my public = noc->ispublic(); ^^ ^^^ Do y

Perl Equavlent

2003-11-13 Thread Mike Blezien
Hi, Ran accross a function called "ceil" and from the information I got on this: "ceil() [Stands for ceiling], it just rounds a float value up.. so ceil(4.7) == ceil(4.1342) == 5" would this be the same as using "int" function in perl or is there function in perl called "ceil" ?? thx's -- Mike

RE: Starting Perl

2003-11-13 Thread McMahon, Chris
I name my Perl scripts on my FreeBSD box "something.pl" because I'm the first (and so far only, but not for long) user of a Unix-y system in an all-Windows shop, and I don't want my colleagues to be confused. Quizzicality cuts both ways... =) -Chris -Original Message-

RE: Perl Equavlent

2003-11-13 Thread Bob Showalter
Mike Blezien wrote: > Hi, > > Ran accross a function called "ceil" and from the information I got > on this: > > "ceil() [Stands for ceiling], it just rounds a float value up.. so > ceil(4.7) == ceil(4.1342) == 5" > > would this be the same as using "int" function in perl No. int() simply drop

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

2003-11-13 Thread Rob Dixon
R. Joseph Newton wrote: > > > > There are many references , what line number does it say > > > is evil and which line below is that? > > > > Thanks for your help, I have put a -right here - in the code... > > > > } > > $SQL .= "\n"; > > } > > #-righ

Re: Perl Equavlent

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 9:50 AM, Bob Showalter wrote: Mike Blezien wrote: Hi, Ran accross a function called "ceil" and from the information I got on this: "ceil() [Stands for ceiling], it just rounds a float value up.. so ceil(4.7) == ceil(4.1342) == 5" would this be the same as using "int" function

Re: When is Perl 6 coming out?

2003-11-13 Thread Dan Anderson
> Hi all, > i am just curious -- is perl 6 coming with a compiler ? > thanks, > regards, > KM Yup, and from what somebody else posted it looks to be sweet: http://www.parrotcode.org/ -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Counting (easy!) - select???

2003-11-13 Thread Rob Dixon
Kevin Old wrote: > > On Thu, 2003-11-13 at 09:33, Rob Dixon wrote: > > "Bob Showalter" <[EMAIL PROTECTED]> wrote in message > > > > > > Christiane Nerz wrote: > > > > Kevin Old wrote: > > > > ... > > > > > select undef, undef, undef, 0.25 or print $_ > > > > > for 1 .. 5; > > > > ... > > > > quit

Re: Perl Equavlent

2003-11-13 Thread Jeff 'japhy' Pinyan
On Nov 13, James Edward Gray II said: >On Nov 13, 2003, at 9:50 AM, Bob Showalter wrote: > >> Mike Blezien wrote: >>> Hi, >>> >>> Ran accross a function called "ceil" and from the information I got >>> on this: >>> >>> "ceil() [Stands for ceiling], it just rounds a float value up.. so >>> ceil(4.7

Re: Perl Equavlent

2003-11-13 Thread Rob Dixon
James Edward Gray II wrote: > > On Nov 13, 2003, at 9:50 AM, Bob Showalter wrote: > > > Mike Blezien wrote: > >> Hi, > >> > >> Ran accross a function called "ceil" and from the information I got > >> on this: > >> > >> "ceil() [Stands for ceiling], it just rounds a float value up.. so > >> ceil(4.7

Re: Perl Equavlent

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 10:01 AM, Jeff 'japhy' Pinyan wrote: No, int() is neither exactly like ceil() or floor(). All int() does is truncate the number to an integer. If you have 2.3, you get 2. If you have 2.9, you get 2. If you have -2.3, you get -2. If you have -2.9, you get -2. If you were

Re: Counting (easy!)

2003-11-13 Thread Rob Dixon
Dan Muey wrote: > > > > > In Perl that is usually written as: > > > > for $count ( 1 .. 5 ) { > > print "$count\n"; > > } > > Or even easier: > for(1..5) { print; } > Or if you nee the newline: > for(1..5) { print "$_\n"; } If we're competing, then there's print for 1..5 ;) Rob -- To

Re: Perl Equavlent

2003-11-13 Thread Mike Blezien
Hi, So if I use the int() this will provide the same results as this ceil() function does... ?? thx's -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Quality Web Hosting http://www.justl

RE: Counting (easy!)

2003-11-13 Thread Tore Aursand
On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote: >> In Perl that is usually written as: >> >> for $count ( 1 .. 5 ) { >> print "$count\n"; >> } > Or even easier: > for(1..5) { print; } Or _even_ easier; print 1..5; Hah! :-) -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe,

Re: Perl Equavlent

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 10:17 AM, Mike Blezien wrote: So if I use the int() this will provide the same results as this ceil() function does... ?? No, it's not the same. See the chart earlier in this thread. Sorry for confusing the issue. James -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Version differences

2003-11-13 Thread Tore Aursand
On Thu, 13 Nov 2003 20:15:18 +0530, Sachin Mathur wrote: > I Wanted to know what are the differences in version 5.005 and version > v.5.8.0 of perl Check out perldelta for each version. -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: DBI MYSQL

2003-11-13 Thread Larry Sandwick
By replacing the comma with a colon I was able connect to the database; it now looks like I have a permission problem where the user on computer B has no permission to reload the data on computer A. I was also able to login at the command prompt with the same error. My error was : ERROR 1045: Ac

Re: Starting Perl

2003-11-13 Thread drieux
On Thursday, Nov 13, 2003, at 07:49 US/Pacific, McMahon, Chris wrote: [..] I name my Perl scripts on my FreeBSD box "something.pl" because I'm the first (and so far only, but not for long) user of a Unix-y system in an all-Windows shop, and I don't want my colleagues to be confused. Quizzic

Perl memory utilization question...

2003-11-13 Thread NIPP, SCOTT V (SBCSI)
I am an SA for several HP-UX systems. Recently a user had a problem running a Perl job and he indicated that it would die at about 1GB. Now, I believe that the HP-UX 11i kernel parameter 'maxdsiz' is the limit he is running into here, but I am not entirely sure. The question I really hav

Re: Perl Equavlent

2003-11-13 Thread Mike Blezien
Hi, so I guess my question is, if I want to accomplish the same results as this "ceil" how would that be accomplished in Perl ?? thx's -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Quali

Re: Perl Equavlent

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 10:38 AM, Mike Blezien wrote: Hi, so I guess my question is, if I want to accomplish the same results as this "ceil" how would that be accomplished in Perl ?? Does this one-liner get you started? perl -e 'use POSIX qw(ceil); print ceil(2.3), "\n";' James -- To unsubscribe,

Re: Perl Equavlent

2003-11-13 Thread Mike Blezien
Yes, this did the trick exactly :) thanks for your help -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Quality Web Hosting http://www.justlightening.net MSN: [EMAIL PROTECTED] =-=-=-=-=-=-

Re: Starting Perl

2003-11-13 Thread Chuk Goodin
On Wed, Nov 12, 2003 at 07:55:24PM -0800, Randal L. Schwartz wrote: > 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

Re: Perl Equavlent

2003-11-13 Thread George Schlossnagle
On Nov 13, 2003, at 11:38 AM, Mike Blezien wrote: Hi, so I guess my question is, if I want to accomplish the same results as this "ceil" how would that be accomplished in Perl ?? use POSIX qw/ceil/; $float = '1.9'; print ceil($float); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: DBI MYSQL

2003-11-13 Thread Dan Muey
> By replacing the comma with a colon I was able connect to the > database; it now looks like I have a permission problem where Cool, I'm glad that worked! > the user on computer B has no permission to reload the data > on computer A. > > I was also able to login at the command prompt with t

Re: Starting Perl

2003-11-13 Thread drieux
On Thursday, Nov 13, 2003, at 09:32 US/Pacific, Chuk Goodin wrote: [..] What kind of naming structure would you suggest for people who just want to use extensions for organizational purposes? [..] when you say for 'organizational purposes' do you mean in terms of tracking the 'source code' in a

copying a multidimensional array

2003-11-13 Thread Ravi Malghan
Hi: whatz the best way to copy an multidimensional array onto another. I have never used something like clone, just want to know whatz the easiest route. Thanks Ravi __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/wha

Re: Perl Equavlent

2003-11-13 Thread Rob Dixon
Mike Blezien wrote: > > Ran accross a function called "ceil" and from the information I got on this: > > "ceil() [Stands for ceiling], it just rounds a float value up.. so ceil(4.7) == > ceil(4.1342) == 5" > > would this be the same as using "int" function in perl or is there function in > perl cal

Re: Perl memory utilization question...

2003-11-13 Thread drieux
On Thursday, Nov 13, 2003, at 08:40 US/Pacific, NIPP, SCOTT V (SBCSI) wrote: I am an SA for several HP-UX systems. Recently a user had a problem running a Perl job and he indicated that it would die at about 1GB. Now, I believe that the HP-UX 11i kernel parameter 'maxdsiz' is the limit he is

Re: copying a multidimensional array

2003-11-13 Thread Steve Grazzini
On Thu, Nov 13, 2003 at 10:06:19AM -0800, Ravi Malghan wrote: > Hi: whatz the best way to copy an multidimensional > array onto another. I have never used something like > clone, just want to know whatz the easiest route. Storable::dclone() is probably the easiest: use Storable qw(dclone);

Re: Starting Perl

2003-11-13 Thread Chuk Goodin
> >What kind of naming structure would you suggest for people who just > >want > >to use extensions for organizational purposes? > > when you say for 'organizational purposes' do you > mean in terms of tracking the 'source code' in a > source code control system? Or do you mean tracking > named a

Re: Counting (easy!)

2003-11-13 Thread Rob Dixon
Tore Aursand wrote: > > On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote: > >> In Perl that is usually written as: > >> > >> for $count ( 1 .. 5 ) { > >> print "$count\n"; > >> } > > > Or even easier: > > for(1..5) { print; } > > Or _even_ easier; > > print 1..5; For the subscribers who d

Re: not on topic but relevant to list

2003-11-13 Thread Daniel Staal
--On Wednesday, November 12, 2003 6:25 PM -0500 Casey West <[EMAIL PROTECTED]> 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 k

Please help!

2003-11-13 Thread Sarah7281
Hi- I'm an absolute beginner to Perl. I need to write a script that will take tables from a SQL server database, somehow get them into HTML format, and automatically generate an email to a list of users containing the info I just converted into HTML. All I can seem to find online is generating

trying again....

2003-11-13 Thread Sarah7281
I apologize for my earlier question. I don't mean that I want someone to write a program for me. I was just perhaps looking for some generic info on Perl's capability to generate email? If that exists? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: Please help!

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 1:14 PM, [EMAIL PROTECTED] wrote: Hi- I'm an absolute beginner to Perl. I need to write a script that will take tables from a SQL server database, somehow get them into HTML format, and automatically generate an email to a list of users containing the info I just converted

Re: trying again....

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 1:23 PM, [EMAIL PROTECTED] wrote: I apologize for my earlier question. I don't mean that I want someone to write a program for me. I was just perhaps looking for some generic info on Perl's capability to generate email? If that exists? Perl can definitely do anything you s

Source Code Control and Naming ThingiePoo was Re: Starting Perl

2003-11-13 Thread drieux
On Thursday, Nov 13, 2003, at 10:34 US/Pacific, Chuk Goodin wrote: [..] Basically, if I've got a directory sitting there with three or four different types of files in it, I'd like to know which ones are perl (and I can just open them up in vi and fix them) and which ones aren't (and I'll have to

RE: trying again....

2003-11-13 Thread Johnson, Shaunn
--howdy: --not sure i follow, but i have a few questions for --you: * you want to connect to the database and do, what, exactly? show the data in html? * you have a list of people in the database, perhaps, that you want to email? what platform? not that it really matters ... windows, linu

RE: trying again....

2003-11-13 Thread Jason Frisvold
Check out Mail::Mailer ... I use that for 99% of my scripts that need email support.. --- Jason H. Frisvold Backbone Engineering Supervisor Engineering Dept. Penteledata RedHat Engineer - RHCE # 807302349405893 [EMAIL PROTECTED] --- "I love deadline

Re: Threading In List Replies [Re: QUESTION]

2003-11-13 Thread Daniel Staal
--On Thursday, November 13, 2003 12:35 AM -0800 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Now that you explained all that, should I reply or reply all? ie - this message does a reply all as: To: "R. Joseph Newton" <[EMAIL PROTECTED]> CC: Beginners--Perl <[EMAIL PROTECTED]>, Rob Dixon <

Dealing with Email and Perl was Re: trying again....

2003-11-13 Thread drieux
On Thursday, Nov 13, 2003, at 11:23 US/Pacific, [EMAIL PROTECTED] wrote: I apologize for my earlier question. I don't mean that I want someone to write a program for me. I was just perhaps looking for some generic info on Perl's capability to generate email? If that exists? you will want to b

Re: Please help!

2003-11-13 Thread Gabino Travassos
> I'm an absolute beginner to Perl. I need to write a script that will take tables from a SQL server database, somehow get them into HTML format, and automatically generate an email to a list of users containing the info I just converted into HTML. All I can seem to find online is generating autom

Re: Counting (easy!)

2003-11-13 Thread John W. Krahn
Rob Dixon wrote: > > Tore Aursand wrote: > > > > On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote: > > >> In Perl that is usually written as: > > >> > > >> for $count ( 1 .. 5 ) { > > >> print "$count\n"; > > >> } > > > > > Or even easier: > > > for(1..5) { print; } > > > > Or _even_ easier;

getting remote image size with Image::Size & LWP

2003-11-13 Thread Matthew Galaher
 Thank you for your patience and help bringing me up to speed on how to be a better user of this list. My previous post was my first. I am trying to write a script that will use Image::Size module in conjunction with the LWP module to retrieve the height and width attribute of a gif or jpg on a re

Re: Counting (easy!)

2003-11-13 Thread Steve Grazzini
On Thu, Nov 13, 2003 at 12:09:24PM -0800, John W. Krahn wrote: > Rob Dixon wrote: > > For the subscribers who don't already know, > > what are the differences between my > > > > print for 1..5 > > for iterates over the list 1..5 and sets $_ with each value and then > print is called for each it

Calling A C++ program

2003-11-13 Thread Quang Nguyen
Hello All, I need to write a program to call a C++ program (mktrace). The program ask for an input file and then it ask for output file. I have 1000 files that want to input and I do not want to do one at a time. QKN -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Source Code Control and Naming ThingiePoo was Re: Starting Perl

2003-11-13 Thread Chuk Goodin
On Thu, Nov 13, 2003 at 11:33:14AM -0800, drieux wrote: > So let us step back and look at the 'root cause problem' > > so I want to just 'fix it on the fly' > > and yes, foo.pl as an editable text file will allow you > simply open it with a text editor and WHACK a fix in. Unlike > RealCode[

Package Help

2003-11-13 Thread Colin Johnstone
Gidday All, Im modifying this package. What it does is produce the html for our presentation templates of our content management system. I have to keep track of the number of forms on my page so I can create unique names for them, to do that I have initiated a variable FRM_CNT. One of my more

RE: trying again....

2003-11-13 Thread Suman, Kaushik
How do you get help on a perl module..? -Original Message- From: Jason Frisvold [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 11:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: trying again Check out Mail::Mailer ... I use that for 99% of my scripts that n

CPAN Installs failing due to embedded " " in winXP directory path?

2003-11-13 Thread Barry
Would someone please help me to use CPAN to update / install modules. I'm using ActiveState Perl 5.6, on winXP. I'm fairly sure its happening because I stupidly set up all my programs below a 'My Programs' directory with an embedded space. The messages I get are typically like these : =

Re: Calling A C++ program

2003-11-13 Thread Dan Anderson
That sounds like a shell scripting problem. All you'd need to do is create a string like: mktrace file1 file2 & mktrace file3 file4 & etc... At least that would work under *nix. & backgrounds the process.. So you could create a long string of files and calls to mktrace (assuming mktrace suppor

Re: trying again....

2003-11-13 Thread Rob Dixon
Hi Sarah. Sarah wrote: > > I apologize for my earlier question. I don't mean that > I want someone to write a program for me. No, and you didn't say so either. It's just that we get a little twitchy here about that sort of request. You've nothing to apologise for. > I was just perhaps looking f

Re: Counting (easy!)

2003-11-13 Thread Rob Dixon
John W. Krahn wrote: > > > > > For the subscribers who don't already know, > > what are the differences between my > > > > print for 1..5 > > for iterates over the list 1..5 and sets $_ with each value and then > print is called for each item and print out the value in $_. > > > and Tore's > > >

Re: Counting (easy!)

2003-11-13 Thread John W. Krahn
Steve Grazzini wrote: > > On Thu, Nov 13, 2003 at 12:09:24PM -0800, John W. Krahn wrote: > > Rob Dixon wrote: > > > For the subscribers who don't already know, > > > what are the differences between my > > > > > > print for 1..5 > > > > for iterates over the list 1..5 and sets $_ with each value

Re: Counting (easy!)

2003-11-13 Thread Rob Dixon
Steve Grazzini wrote: > > On Thu, Nov 13, 2003 at 12:09:24PM -0800, John W. Krahn wrote: > > Rob Dixon wrote: > > > For the subscribers who don't already know, > > > what are the differences between my > > > > > > print for 1..5 > > > > for iterates over the list 1..5 and sets $_ with each value

RE: trying again....

2003-11-13 Thread Jason Frisvold
On Thu, 2003-11-13 at 15:50, Suman, Kaushik wrote: > How do you get help on a perl module..? I find that going to search.cpan.org and searching for the module in question is enough... You can also use perldoc if you know where the .pm file was installed.. > -Original Message- > From: Jas

  1   2   >