Re: Simple question

2001-11-25 Thread Jim Conner
At 01:00 11.26.2001 -0500, Jim Conner wrote: >At 15:25 11.26.2001 +1030, Daniel Falkenberg wrote: >>Hey all, >> >>Just a simple question could some one give me a clue as to what the >>folling regex will match... >> >>$user = "daniel"; >> >>if ( $test =~ /^$user/ ) { >>print "Hello world!\n

Re: Simple question

2001-11-25 Thread Jim Conner
At 15:25 11.26.2001 +1030, Daniel Falkenberg wrote: >Hey all, > >Just a simple question could some one give me a clue as to what the >folling regex will match... > >$user = "daniel"; > >if ( $test =~ /^$user/ ) { >print "Hello world!\n"; >} Hrm. The regex is comparing a variable called $

RE: Simple question

2001-11-25 Thread Jeff 'japhy' Pinyan
On Nov 26, Sidharth Malhotra said: >It will only match anything beginning with "daniel": "daniel", >"daniella", "danielson", "daniel smith" >If you specifically want to match only "daniel" try: >/^$user$/ But there's no reason to use a regex for that. Please read my recent document on thi

RE: Simple question

2001-11-25 Thread Daniel Falkenberg
No problem. Thanks for you help. Dan -Original Message- From: Ahmed Moustafa Ibrahim Ahmed [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 November 2001 3:35 PM To: [EMAIL PROTECTED] Subject: Re: Simple question Sidharth's reply is correct. Mine is not. Sorry for that. Ahmed Moustafa Ibr

Re: Simple question

2001-11-25 Thread Ahmed Moustafa Ibrahim Ahmed
Sidharth's reply is correct. Mine is not. Sorry for that. Ahmed Moustafa Ibrahim Ahmed wrote: > It will match only "daniel". It's the same as: if ($test eq $user). > Regards, > Ahmed > > Daniel Falkenberg wrote: > >> Hey all, >> >> Just a simple question could some one give me a clue as to wha

Re: Simple question

2001-11-25 Thread Ahmed Moustafa Ibrahim Ahmed
It will match only "daniel". It's the same as: if ($test eq $user). Regards, Ahmed Daniel Falkenberg wrote: > Hey all, > > Just a simple question could some one give me a clue as to what the > folling regex will match... > > $user = "daniel"; > > if ( $test =~ /^$user/ ) { >print "Hel

RE: Simple question

2001-11-25 Thread Sidharth Malhotra
It will only match anything beginning with "daniel": "daniel", "daniella", "danielson", "daniel smith" If you specifically want to match only "daniel" try: /^$user$/ Hth. Sid. -Original Message- From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 25, 2001 11

Simple question

2001-11-25 Thread Daniel Falkenberg
Hey all, Just a simple question could some one give me a clue as to what the folling regex will match... $user = "daniel"; if ( $test =~ /^$user/ ) { print "Hello world!\n"; } Will it match only daniel or will it match dan || danni and so on? Cheers, Dan -- To unsubscribe, e-mail: [E

Passwd::Linux

2001-11-25 Thread Daniel Falkenberg
Hi all, Has any one here had any experience with the Passwd::Linux Cpan module before? If you have I would really like to hear from you to get some ideas. Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Handlers

2001-11-25 Thread Leon
- Original Message - From: "Purshottam Chandak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 26, 2001 5:32 AM Subject: File Handlers > what may be the cause the filehandles don't work. I am using windows 98. > Everything works fine exept the filehandles. I'm not to

Re[2]: @_

2001-11-25 Thread Daniel Gardner
Hello Leon, Monday, November 26, 2001, 12:15:59 AM, Leon wrote: L> - Original Message - L> From: "Jenda Krynicky" <[EMAIL PROTECTED]> L> To: <[EMAIL PROTECTED]> L> Sent: Monday, November 26, 2001 4:44 AM L> Subject: Re: @_ >> When you cann a function all the parameters you gave it end u

Re: @_

2001-11-25 Thread Leon
- Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 26, 2001 4:44 AM Subject: Re: @_ > When you cann a function all the parameters you gave it end up in > @_. You can (and usualy do) copy them then into some lexical > variables to

Re: Useless use of a variable in void context

2001-11-25 Thread Michael Fowler
On Fri, Nov 23, 2001 at 11:28:14AM -0800, Ahmed Moustafa Ibrahim Ahmed wrote: > The following line of code "if (-d $filename) {" gives me the error message > "Useless use of a variable in void context". What does this error message, > please? perldiag describes that warning message, as others hav

File Handlers

2001-11-25 Thread Purshottam Chandak
what may be the cause the filehandles don't work. I am using windows 98. Everything works fine exept the filehandles. Pc _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL

Re: Firing a subroutine from within a here-document

2001-11-25 Thread Jenda Krynicky
From: Chris Spurgeon <[EMAIL PROTECTED]> > I have this code snippet... > print < > I think x is $x and y is $y. > &foobar > Did the subroutine fire? > > END_OF_STUFF > > > When I run it, the scalar variables $x and $y are interpreted in the print > statement, but the subrout

Re: does cgi working properly have anything to do with browsers?

2001-11-25 Thread Jenda Krynicky
From: neill <[EMAIL PROTECTED]> > hi, i am very new to perl and cgi so please excuse this dull, stoopid > question... > > but i'm trying to write a formmail program and i'm getting very frustrated > cos it works in Opera 5.12 and NS6.1 but for some reason in IE6 it doesn't.

Re: @_

2001-11-25 Thread Jenda Krynicky
From: "Purshottam Chandak" <[EMAIL PROTECTED]> > In the following subroutine, I do not understand why we need to use my ($n1, > @n2) = @_;. Why are we using @_ if it is not used elsewhere. Can somebody > throw some light on this please? > > # max($n1, @n2); > # Returns the maxi

Re: stoopid newbie formmail question

2001-11-25 Thread Luke SIbala
On Sun, 25 Nov 2001 01:45:19 + "neill roy" <[EMAIL PROTECTED]> wrote: > hi, i am very new to perl and cgi so please excuse this dull, stoopid > question... > > > but i'm trying to write a formmail program and i'm getting very frustrated > cos it works in Opera 5.12 and NS6.1 but for some

@_

2001-11-25 Thread Purshottam Chandak
In the following subroutine, I do not understand why we need to use my ($n1, @n2) = @_;. Why are we using @_ if it is not used elsewhere. Can somebody throw some light on this please? # max($n1, @n2); # Returns the maximum of the arguments. sub max { my ($n1, @n2) = @_; foreach $m (@n2) { if ($n1

File Handlers

2001-11-25 Thread Purshottam Chandak
what may be the cause the filehandles don't work. I am using windows 98. Everything works fine exept the filehandles. Pc _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL

RE: count one name

2001-11-25 Thread Wagner-David
if ( length($word) > 10 { # do something when length of word greater than 10 characters }else { # when 10 or less characters } Wags ;) -Original Message- From: nafiseh saberi [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 25, 2001 01:29 To: [EMAIL

Re: hash question- solved

2001-11-25 Thread [EMAIL PROTECTED]
On Sun, 25 Nov 2001, [EMAIL PROTECTED] wrote: > Date: Sun, 25 Nov 2001 15:18:19 +0200 (IST) > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: hash question > > hi all, > can someone point me in the right direction. i dont understand the > following line of c

hash question

2001-11-25 Thread [EMAIL PROTECTED]
hi all, can someone point me in the right direction. i dont understand the following line of code: my $TestingTimeStop=$Record->{time}+3600 what i dont understand is that it seems that $Record->{time} is just accessing the value of time. is this just another way to write $Record{time} ?

stoopid newbie formmail question

2001-11-25 Thread neill roy
hi, i am very new to perl and cgi so please excuse this dull, stoopid question... but i'm trying to write a formmail program and i'm getting very frustrated cos it works in Opera 5.12 and NS6.1 but for some reason in IE6 it doesn't. for some reason IE can't tell whether a field has been fille

Re: How to know a file is being processed?

2001-11-25 Thread Randal L. Schwartz
> "Ahmed" == Ahmed Moustafa Ibrahim Ahmed <[EMAIL PROTECTED]> writes: Ahmed> My script should be waiting for the incoming files and encrypts them as Ahmed> soon as the transmission is completed. Using "lsof" makes a gap between Ahmed> the arrival of the files and their encryption. Ahmed> Is

Re: error in perl.com

2001-11-25 Thread brian d foy
In article <001c01c17591$7b9f7500$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nafiseh Saberi) wrote: [the error is with perldoc.com, not perl.com as it says in the subject line] > I find one error in perl.com in > http://www.perldoc.com/perl5.6/pod/func/readdir.html > in line four. > instead of quta

Re: build directory with source code

2001-11-25 Thread Ahmed Moustafa Ibrahim Ahmed
To build a directory, use mkdir To check if a directory exists or not: if (-e $dirname) { print "$dirname exists"; } else { print "$dirname does not exist"; } I hope that helps. Ahmed Nafiseh Saberi wrote: > hi all...

count one name

2001-11-25 Thread nafiseh saberi
hi all. do you know .. how can I count the number of one word ?? I want to count it for check that it is grather than 10 char or not... thx. Nafiseh Saberi

build directory with source code

2001-11-25 Thread nafiseh saberi
hi all... would you know any info for build directory in specific path in middle of source code of perl?? I need the syntax ,that open dir and if it isn't exist... build that. thx. Nafiseh Saberi

Re: error in perl.com

2001-11-25 Thread Ahmed Moustafa Ibrahim Ahmed
Nafiseh, I think "question" is correct. Thanks, Ahmed Nafiseh Saberi wrote: > hi all. > > I find one error in perl.com in > http://www.perldoc.com/perl5.6/pod/func/readdir.html > in line four. > instead of qutation...write question. > > bye. > > >

error in perl.com

2001-11-25 Thread nafiseh saberi
hi all. I find one error in perl.com in http://www.perldoc.com/perl5.6/pod/func/readdir.html in line four. instead of qutation...write question. bye. Nafiseh Saberi