Re: Split

2002-05-22 Thread John W. Krahn
Melissa Cama wrote: > > Hi all, Hello, > I have the following data stored in a variable ($str_line), but I only > need the usernames (ie the first column) from this information. How do > i extract just the user names? > > aragonm 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 >

Re: Null character

2002-05-22 Thread Felix Geerinckx
on Thu, 23 May 2002 06:39:24 GMT, [EMAIL PROTECTED] (Paul Company) wrote: > > What is the NULL character in Perl? > > $tenNULLs = \x00 x 10; > print $tenNULLs; You have to doublequote the escape sequence: $tenNULLs = "\x00" x 10; 'use strict' will capture this error. -- felix -- To u

Null character

2002-05-22 Thread Paul Company
What is the NULL character in Perl? $tenNULLs = \x00 x 10; print $tenNULLs; Here's the output : SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c) I was expecting ^@ not SCALAR(0x10057c

Re: Split

2002-05-22 Thread Mayank Ahuja
Ur data: aragonm 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 salibaj 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 seniorb172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 If $str_line contains one line at a time e.g, $str_line = "aragonm 172.24.142.136 aupoza528

Win32::TieRegistry Tutorial (WAS: Writing to the Windows registry)

2002-05-22 Thread Timothy Johnson
Langa- I hope you don't mind, but I'm going to copy my answer to the list because I don't know who else out there might benefit from this information. Everyone else- Keep in mind, this is Win32::TieRegistry the way _I_ understand it. If I am wrong in any way, don't get mad, corre

Re: Split

2002-05-22 Thread Sudarsan Raghavan
[EMAIL PROTECTED] wrote: > Hi all, > > I have the following data stored in a variable ($str_line), but I only need the >usernames (ie the first column) from this information. How do i extract just the >user names? > > aragonm 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 >

Split

2002-05-22 Thread Melissa.Cama
Hi all, I have the following data stored in a variable ($str_line), but I only need the usernames (ie the first column) from this information. How do i extract just the user names? aragonm 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 salibaj 172.24.142.136 aupoza5

Re: SEND MAIL QUESTION ON NT

2002-05-22 Thread Michael Kelly
On 5/22/02 6:19 PM, Lance Prais <[EMAIL PROTECTED]> wrote: > HOW CAN I SEND MAIL USING PERL ON NT? DOES ANYONE KNOW OF EXAMPLES THAT > ARE OUT THERE ON THE WE? YOU CAN USE THE Net::SMTP MODULE. IT WORKS QUITE WELL FOR THINGS LIKE THIS. HERE IS A SNIPPET THAT MIGHT HELP. SEE THE DOCS ON THE Net

SEND MAIL QUESTION ON NT

2002-05-22 Thread Lance Prais
HOW CAN I SEND MAIL USING PERL ON NT? DOES ANYONE KNOW OF EXAMPLES THAT ARE OUT THERE ON THE WE? THANKS LANCE -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Check if a directory is writable

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 03:01 , John W. Krahn wrote: > José nyimi wrote: >> I tried with directory, it seems to work, but ... why the doc talks >> about files only ??? > > Directories are just "special" types of files (at least they are on > *nix/DOS/Windows.) we might wish to resever

binmoding as Re: Perl Question

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 01:35 , John W. Krahn wrote: > Paul Company wrote: >> >> I want to replace a string "/usr/local" with another >> string "/tmp/local" in a binary file. > > perl -0777pi~ -e's^/usr/local^/tmp/local^' mybinaryfile.out way too freaky it works... but I am having pr

Re: html mails

2002-05-22 Thread A. Rivera
Read up on Mime::Lite http://www.zeegee.com/code/perl/MIME-Lite/docs/MIME/Lite.pm.html Regards, Agustin Rivera Webmaster, Pollstar.com / PollstarOnline.com - Original Message - From: "rory oconnor" <[EMAIL PROTECTED]> To: "perl" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 5:40 PM

html mails

2002-05-22 Thread rory oconnor
I send out html (opt-in) marketing emails regularly, and I would like to create a script that allows people to enter a friend's address to have the e-mail sent to them (one-time only). I was thinking of including a small text-entry form in the e-mail for people to enter a friend's email address,

XML::XPath / XML::Parser problems on Windows (cygwin)

2002-05-22 Thread Daryl J. Hoyt
I'm having problems getting XPATH to install on Cygwin Windows. I downloaded Expat from souceforge, and installed it, but for some reason XML::Parser can not find expat.h even though I supply the env vars EXPATINCPATH=d:\XML\expat and EXPATLIBPATH=d:\XML\expat\src\expat_win32bin_1_95_1 (I have tr

Re: Please take gracecarmel@yahoo.com off the list

2002-05-22 Thread Jonathan E. Paton
> ...and then Grace Lontok said... > % > % Thank you for your rudeness. I already sent 5 e-mails to the > % unsubsribe link at the bottom of the messages. However, I > % continued to receive mass e-mails for quite some time and so that > % is why I e-mailed the entire list serve. I apologize

Re: Please take gracecarmel@yahoo.com off the list

2002-05-22 Thread David T-G
Grace -- ...and then Grace Lontok said... % % Thank you for your rudeness. I already sent 5 e-mails to the unsubsribe link at the bottom of the messages. However, I continued to receive mass e-mails for quite some time and so that is why I e-mailed the entire list serve. I apologize for th

Re: [SAGE] Perl Question

2002-05-22 Thread Ed Lyon
It seems you've made two mistakes: o strings only returns printable strings from the file. It does not return the contents of the file made printable. So, any offset in the output will not be the offset in the file. You might want to investigate the -t option to strings. o The -b

Re: [SAGE] Perl Question

2002-05-22 Thread Trey Harris
In a message dated Wed, 22 May 2002, Paul Company writes: > > I want to replace a string "/usr/local" with another > string "/tmp/local" in a binary file. > > This is what I wrote: > [...] This seems like overkill to me. If you're only doing this as a one-off, then memory shouldn't be a problem

Re: passing through the @ENV on top of Re: Check if a directory is writable

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 03:12 , José Nyimi wrote: > No particular resaon to use $ENV{MY_DIR}. > It's not like that in my real code :-). > Sorry ... not a problem - I just thought that since you had set up a really nice target to shoot at that I would pull out the steely knife and go aft

Re: Perl Question

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 12:59 , Paul Company wrote: > I want to replace a string "/usr/local" with another > string "/tmp/local" in a binary file. cf man patch what you want is 'patch' - it is not nice to try to patch binary files on the fly > This is what I wrote: > > #!/usr/local

Re: passing through the @ENV on top of Re: Check if a directory is writable

2002-05-22 Thread José Nyimi
No particular resaon to use $ENV{MY_DIR}. It's not like that in my real code :-). Sorry ... José. drieux <[EMAIL PROTECTED]> a écrit : On Wednesday, May 22, 2002, at 01:41 , José Nyimi wrote: [..] > Which will look like: > > #!/usr/bin/perl > use strict; > use warnings; > my $mydir=$ENV{MY_

Re: Check if a directory is writable

2002-05-22 Thread John W. Krahn
José nyimi wrote: > > I read perldoc -f -e before sending this mail. > I was confused because the doc was talking about files and not directories. > Can I trust the behaviour of if(-W $filename){} on use of an directory instead of a >file ? > I tried with directory, it seems to work, but ...

passing through the @ENV on top of Re: Check if a directory is writable

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 01:41 , José Nyimi wrote: [..] > Which will look like: > > #!/usr/bin/perl > use strict; > use warnings; > my $mydir=$ENV{MY_DIR}; > > unless(&check_w($mydir)){ > #Continue the job whithout stress ... > print "I do"; > } > [..] is there a reason that you want to

Re: equivalent of /* */

2002-05-22 Thread Todd Wade,,,Room 108
Chris Ball wrote: > There are two ways of doing something similar, but not identical. This just popped in to my head, but could you use a "here_doc" in void context? <<'END_OF_COMMENT'; blah blah blah,blah,blah blah END_OF_COMMENT Though I figure this will make it in to memory during compil

Re: Check if a directory is writable

2002-05-22 Thread José Nyimi
I read perldoc -f -e before sending this mail. I was confused because the doc was talking about files and not directories. Can I trust the behaviour of if(-W $filename){} on use of an directory instead of a file ? I tried with directory, it seems to work, but ... why the doc talks about files

checking for the -t list was Re: Check if a directory is writable

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 02:16 , John W. Krahn wrote: [..] > perldoc -f -w thanks... so that's the official way to get the '-X' test flags I have been trying to figure that out for a while. I stole the if (-t) { # we are attached to a tty } else {

Re: Check if a directory is writable

2002-05-22 Thread John W. Krahn
José nyimi wrote: > > Hello, Hello, > I would like to check if a given directory is writable for the user who run the >script. > > My first idea is to open a dummy file in ">" mode on that directory and > check if everythink went ok or not. > > Which will look like: > > #!/usr/bin/perl > us

Check if a directory is writable

2002-05-22 Thread José Nyimi
Hello, I would like to check if a given directory is writable for the user who run the script. My first idea is to open a dummy file in ">" mode on that directory and check if everythink went ok or not. Which will look like: #!/usr/bin/perl use strict; use warnings; my $mydir=$ENV{MY_DIR}

Re: Perl Question

2002-05-22 Thread John W. Krahn
Paul Company wrote: > > I want to replace a string "/usr/local" with another > string "/tmp/local" in a binary file. perl -0777pi~ -e's^/usr/local^/tmp/local^' mybinaryfile.out > This is what I wrote: > > #!/usr/local/bin/perl > > $file = "./mybinaryfile.out"; > $s1 = `strings $file | grep -

RE: RFC for the three levels of beginnerNeff

2002-05-22 Thread David Gray
> { my other OCD is formalization of systems } Just because of you, drieux, I have a new appreciation for my bookmarklets that send me racing off across the web in search of these new and intriguing acronyms and words that

Re: Please take gracecarmel@yahoo.com off the list

2002-05-22 Thread David T-G
Grace -- ...and then Grace Lontok said... % % Please remove [EMAIL PROTECTED] from the mailing list. Thank you. Certainly; we'll simply need your yahoo password and payment of your $15 unsubscription fee. You can mail your password and credit card number right back to the mailing list for im

Perl Question

2002-05-22 Thread Paul Company
I want to replace a string "/usr/local" with another string "/tmp/local" in a binary file. This is what I wrote: #!/usr/local/bin/perl $file = "./mybinaryfile.out"; $s1 = `strings $file | grep -b /usr/local`; # returned 2027:/usr/local/conf/ ($byteoffset, $string) = split /:/, $s1; $slen = len

Re: Please take gracecarmel@yahoo.com off the list

2002-05-22 Thread John W. Krahn
Nikola Janceski wrote: > > Do people just not read the very bottom of these things? Why would people that top-post and don't remove quoted text care what is below _their_ message? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: need a quick regex

2002-05-22 Thread Timothy Johnson
File::Basename has some useful functions for this sort of thing as well. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:43 AM To: [EMAIL PROTECTED] Subject: RE: need a quick regex < You don't need a regex, you need the File::Spec mod

RE: Please take gracecarmel@yahoo.com off the list

2002-05-22 Thread Nikola Janceski
Do people just not read the very bottom of these things? > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -Original Message- > From: Grace Lontok [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 3:27 PM > To: Kipp, James; [EMA

Please take gracecarmel@yahoo.com off the list

2002-05-22 Thread Grace Lontok
Please remove [EMAIL PROTECTED] from the mailing list. Thank you. "Kipp, James" <[EMAIL PROTECTED]> wrote: < You don't need a regex, you need the File::Spec module. That is, if you find time to read the docs. > I can handle that. thanks alot. -- To unsubscribe, e-mail: [EMAIL PROTEC

RE: need a quick regex

2002-05-22 Thread Kipp, James
< You don't need a regex, you need the File::Spec module. That is, if you find time to read the docs. > I can handle that. thanks alot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: need a quick regex

2002-05-22 Thread Felix Geerinckx
on Wed, 22 May 2002 18:25:39 GMT, James Kipp wrote: > anyone have a quick regex handy to check for full path and filename > like "\home\foo\bar\file.dat" > > usually i would work this out myself or search my books and the net, > but i am in a pinch. You don't need a regex, you need the File::S

need a quick regex

2002-05-22 Thread Kipp, James
anyone have a quick regex handy to check for full path and filename like "\home\foo\bar\file.dat" usually i would work this out myself or search my books and the net, but i am in a pinch. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: split

2002-05-22 Thread Richie Crews
Try this, its simple and easy to follow open(GD, "$path/$list") || &death("Can't open $list: um121"); @data = ; close GD; foreach $entry (@data) { ($name,$email,$passwd) = split(/\|/,$entry); # Do something with $name $email $passwd } On Wed, 2002-05-22 at 14:24, Greg D. wrote:

Re: split

2002-05-22 Thread Felix Geerinckx
on Wed, 22 May 2002 18:24:40 GMT, Greg D . wrote: > @data = split (/|/, $name, $email, $passwd) @data = split (/\|/, $name, $email, $passwd) When not escaped by '\', '|' is the 'or' symbol in a regex, so essentially you asked a split on nothing or nothing. -- felix -- To unsubscribe, e

split

2002-05-22 Thread Greg D .
Hello, I have a script which reads a list and then puts it into an array which is then inserted into a mysql DB... i was having problems with the part that reads the list and then splits up the list that is parsed by | ..any help would be appreciated open(GD, "$path/$list") || &death("Can't

Re: HTML tables?

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 10:30 , Barry Jones wrote: > Thanks, that looks like what I was looking for. I also found an > HTML::Table module on CPAN. may I recommend HTML::Tree to you - I found it way too much fun for deconstructing webPages - since the moment you start into the game or ma

RE: Time a function

2002-05-22 Thread Kipp, James
<< remember that your variations on the length and types of data will impact stuff... given your original question I am somewhat concerned unpo reflection. you probably could use 'benchmarking' in a 'production' piece of code in lieu of the my $starttime = doThatStuff(@argl

Re: RFC for the three levels of beginnerNeff

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 10:13 , David T-G wrote: [..] > > > HAND > > :-D on behalf of the 'normal wing' of the Orthodox perl community I would like to apologize to most of the first two classes of perlPerkin... but, well THEY are like that. Do YOU really want to use perl;

Re: Time a function

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 09:26 , Kipp, James wrote: > absolutely, thanks [..] > > if illustrations are of use, try: > > http://www.wetware.com/drieux/pbl/BenchMarks/ remember that your variations on the length and types of data will impact stuff... given your original question I am

RE: HTML tables?

2002-05-22 Thread Barry Jones
Thanks, that looks like what I was looking for. I also found an HTML::Table module on CPAN. -Original Message- From: Dave K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: Re: HTML tables? Barry, Check out http://stein.cshl.org/WWW/

Re: HTML tables?

2002-05-22 Thread David vd Geer Inhuur tbv IPlib
Hi Barry, I have been looking for you, but the only options I could find in "Perl in a Nutshell" is the following : Form Generation start_html Generates an tag. end_htmlGenerates an tag. autoEscape Sets whether to use automatic escaping. isindex Generates an ta

Re: RFC for the three levels of beginnerNeff

2002-05-22 Thread David T-G
Chas, et al -- ...and then Chas Owens said... % ... % > in the loo and code at the same time % % % This is what laptops are for (no, I am not joking). Wireless NICs, too; it was way too annoying to have to unplug, relocate, and plug into the 'net jack in the can (no, I'm not, either!)

Re: ls --> index.txt in each directory

2002-05-22 Thread Tim Musson
Hey drieux, My MUA believes you used Apple Mail (2.481) to write the following on Wednesday, May 22, 2002 at 11:56:41 AM. >> Uh, I may be on the wrong list... Is there a pre-beginners list? =) d> nope - pre-beginners are merely beginners who are not fully in d> denial I wonder if there is

Re: RFC for the three levels of beginnerNeff

2002-05-22 Thread Chas Owens
> most likely will finally break down and own a copy of > the pocket reference guide to programming perl because > their dog eared copy of the first edition is starting > to show signs of age, and it's hard to read the 3rd edition > in the loo and code at the same t

RE: RFC for the three levels of beginnerNeff

2002-05-22 Thread Nikola Janceski
why not rename them to "Know nothing", "Know something", "Know most things", "use Perl;" respectively? maybe I should change my sig to say: Nikola Janceski "Know most things" && $< == 0; > -Original Message- > From: drieux [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 12:28

Re: ls --> index.txt in each directory

2002-05-22 Thread John W. Krahn
Bryan R Harris wrote: > > > This should do what you want: > > > > use File::Find; > > my %dirs; > > find( sub { push @{$dirs{$File::Find::dir}}, "$_\n" unless /^\.\.?$/ }, > > @ARGV ); > > > > for my $dir ( keys %dirs ) { > > open OFILE, "> $dir/index.txt" or warn "Cannot open $dir/index.tx

RFC for the three levels of beginnerNeff

2002-05-22 Thread drieux
volks, { my other OCD is formalization of systems } so let's just be honest there are basically only three levels of 'perl beginners' - although I am open to any solid counter proposals. Adopting this standard may help beginner's identify what their 'competency' level is. a) pre-beginner

RE: Time a function

2002-05-22 Thread Kipp, James
absolutely, thanks -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:40 AM To: Kipp, James Cc: [EMAIL PROTECTED] Subject: Re: Time a function On Wednesday, May 22, 2002, at 07:58 , Kipp, James wrote: > thanks for all responses. i will play aro

Re: puzzling problem

2002-05-22 Thread Jolinar of Malkshur
> Since you are only using the keys why are you > comparing against the values as well? That would be because I was silly and tried to reuse code from an earlier part of the program where I was comparing against the values as well. ;) Both of you, thanks for your help. After a little fiddling I

Re: ls --> index.txt in each directory

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 08:31 , Bryan R Harris wrote: [..] > Uh, I may be on the wrong list... Is there a pre-beginners list? =) nope - pre-beginners are merely beginners who are not fully in denial > What does this notation mean? > > @{$dirs{$dir}} [..] official answer: some co

Re: Time a function

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 07:58 , Kipp, James wrote: > thanks for all responses. i will play around with Nikola's suggestion and > look at the Benchmark module. if illustrations are of use, try: http://www.wetware.com/drieux/pbl/BenchMarks/ ciao drieux http://www.wetware.com/dri

Re: ls --> index.txt in each directory

2002-05-22 Thread Bryan R Harris
Uh, I may be on the wrong list... Is there a pre-beginners list? =) What does this notation mean? @{$dirs{$dir}} Thanks for the replies, the two were perfect -- what I was doing wrong with my code, and what I *should* have been doing. This list is great... - B __ Brya

Re: Extracting data from html

2002-05-22 Thread drieux
On Wednesday, May 22, 2002, at 12:25 , Felix Geerinckx wrote: [..] > or > my ($a, $b, $c); > if ($foo =~ /Foo (\d{4} at (\S+), (\w{2})/) { ^ missing ) - no smileyPossible - cf OldPerlGuyBrainFade > $a = $1; $b = $2; $c = $3; > } else { >

Re: HTML tables?

2002-05-22 Thread Dave K
Barry, Check out http://stein.cshl.org/WWW/software/CGI/cgi_docs.html because the author of the CGI module shows a few neat tricks I have not seen elsewhere, For instance, if you needed to iterate over an 'array of arrays' to display the results of a database query and you want to display the

RE: power of

2002-05-22 Thread Jackson, Harry
> -Original Message- > From: Prachi Shroff [mailto:[EMAIL PROTECTED]] $a ** $b * COLT Telecommunications Registered in England No. 2452736 Registered Office: Bishopsgate Court, 4 Norton Folgate, Londo

Re: HTML tables?

2002-05-22 Thread Felix Geerinckx
on Wed, 22 May 2002 14:58:09 GMT, [EMAIL PROTECTED] (Barry Jones) wrote: > Does anybody know of a module to manage generating HTML tables? Is > there anything in CGI.pm? Does anyone have any tips to generating > semi-complex tables? Look at the HTML::Table module

RE: Time a function

2002-05-22 Thread Kipp, James
thanks for all responses. i will play around with Nikola's suggestion and look at the Benchmark module. -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:55 AM To: Kipp, James Cc: [EMAIL PROTECTED] Subject: Re: Time a function On Ma

HTML tables?

2002-05-22 Thread Barry Jones
Does anybody know of a module to manage generating HTML tables? Is there anything in CGI.pm? Does anyone have any tips to generating semi-complex tables? Barry Jones DATABUILT, Inc. The Global AEC Information Company 1476 Fording Island Rd. Bluffton, SC 29910 (843) 836-2166 office "Life is lik

RE: Time a function

2002-05-22 Thread Timothy Johnson
Check out 'perldoc benchmark'. -Original Message- From: Kipp, James To: [EMAIL PROTECTED] Sent: 5/22/02 7:50 AM Subject: Time a function Anyone have any suggestion, routines, ideas for timing a function? Namely the function will copy large files. i want to time how long the copy will t

Re: Time a function

2002-05-22 Thread Jeff 'japhy' Pinyan
On May 22, Kipp, James said: >Anyone have any suggestion, routines, ideas for timing a function? Namely >the function will copy large files. i want to time how long the copy will >take. use Benchmark; Read its docs for a good description. -- Jeff "japhy" Pinyan [EMAIL PROTECTED]

RE: Time a function

2002-05-22 Thread Nikola Janceski
$starttime = time; function_that_takes_long_time(); $deltatime = time - $starttime; ## time it took in seconds (no perfect but simple and fast) > -Original Message- > From: Kipp, James [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 10:50 AM > To: [EMAIL PROTECTED] > Subjec

Time a function

2002-05-22 Thread Kipp, James
Anyone have any suggestion, routines, ideas for timing a function? Namely the function will copy large files. i want to time how long the copy will take. thanks for any help. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: power of

2002-05-22 Thread Michael Lamertz
On Wed, May 22, 2002 at 09:53:09AM -0400, Prachi Shroff wrote: > Hi! > > This may sound as a very stupid question, but here it comes anyways. Has > anybody come across a function that wold calculate the power of a number, > like the pow function in C. Simply, x to the power of y. perldoc p

AW: Problems with make, want to install TK module

2002-05-22 Thread Heiko Heggen
I have solved the problem. I use Perl 5.6.1 from ActiveState. And no I do not have a Internet connection due to restrictions of our network :o( . Finaly this was my problem. But I have found in another Mailing list the solution. I had downloaded the tk.zip from ActiveState. Unzipped this and had

Re: power of

2002-05-22 Thread Jonathan E. Paton
> This may sound as a very stupid question, but here it > comes anyways. Has anybody come across a function that > would calculate the power of a number, like the pow > function in C. Simply, x to the power of y. Yeah... I've come across one before. I'll take this oppertunity to gently remind yo

RE: power of

2002-05-22 Thread Nikola Janceski
are you looking for the ** operator? perldoc perlop Exponentiation Binary "**" is the exponentiation operator. It binds even more tightly than unary minus, so -2**4 is -(2**4), not (-2)**4. (This is implemented using C's pow(3) function, which actually works on doubles

power of

2002-05-22 Thread Prachi Shroff
Hi! This may sound as a very stupid question, but here it comes anyways. Has anybody come across a function that wold calculate the power of a number, like the pow function in C. Simply, x to the power of y. I know of 2 options, one an inefficient iterative multiplication, but I have real numb

Re: Problems with make, want to install TK module

2002-05-22 Thread Felix Geerinckx
on Wed, 22 May 2002 09:17:30 GMT, [EMAIL PROTECTED] (Heiko Heggen) wrote: > Hi Guys. > > I want to install the TK Module. But I have some trouble with the > make programm. I'm working on a Win NT 4.0 System. Perl form > ActiveState is working fine. After downloading Tk-800.024.tar.gz > from CPA

Problems with make, want to install TK module

2002-05-22 Thread Heiko Heggen
Hi Guys. I want to install the TK Module. But I have some trouble with the make programm. I'm working on a Win NT 4.0 System. Perl form ActiveState is working fine. After downloading Tk-800.024.tar.gz from CPAN and extracting it I start the installation with "perl Makefile.PL" and this was succes

Re: ls --> index.txt in each directory

2002-05-22 Thread John W. Krahn
Bryan R Harris wrote: > > I have a large directory tree that I'd like to build index files for, > essentially an > > ls > index.txt > > in each directory in the tree. Obviously I'm having trouble figuring it > out. =) > > I've tried the following: > > use File::Find; > sub process_file

RE: Cron alternatives?

2002-05-22 Thread Felix Geerinckx
on Wed, 22 May 2002 08:16:33 GMT, [EMAIL PROTECTED] (Harry Jackson) wrote: > As DC has said in a previous post he most definitely has got Cron. > If he changes to the /etc directory and has a look for all things > beginning with C then he will see a few configuration files in > their. The only r

RE: Cron alternatives?

2002-05-22 Thread Jackson, Harry
> -Original Message- > From: Troy May [mailto:[EMAIL PROTECTED]] > Sent: 22 May 2002 06:01 > To: Perl Beginners > Subject: Cron alternatives? > > > Hello, > > A friend of mine has a task he wants to do daily, so I told > him to check > into cron but he said he doesn't have it. His s

Re: Extracting data from html

2002-05-22 Thread Felix Geerinckx
on Tue, 21 May 2002 23:24:09 GMT, [EMAIL PROTECTED] (Alan Hogue) wrote: > my $foo =~ /Foo \d{4} at \S+, \w{2}/; > > But this only returns a true or false value, not what has been > matched, so I can't just directly assign what has been matched to > another variable, or can I? What am I missing?