RE: Running my perl script in Linux

2003-11-12 Thread Xu, Qiang (XSSC SGP)
Bautista, Rodel D.(Digitel-GSM) wrote: > Hi To All! > > I've previously done what you suggested but still I can't run the > script as is. > > Are there any other way to accomplish it? echo $PATH to see whether your path has included where perl interpreter lies. _

RE: Regular Expression problem?

2003-09-25 Thread Xu, Qiang (XSSC SGP)
Glenn Linderman wrote: > Any delimiter can be used (other posters were correct about that). > The delimiter used affects which delimiter character would need to be > escaped in the regular expression. Generally, if something other > than / is used as the delimiter character, it is chosen because

RE: Regular Expression problem?

2003-09-25 Thread Xu, Qiang (XSSC SGP)
Strohmeier Ruediger wrote: > Hi Xu Qiang, > > unlike e.g. awk, vi or the shell, perl support different delimiter > for regexes. When a slash is part of the regex or the substitution > pattern, they can either be escaped (i.e. \/) or other characters can > be used as delimiters. > > Thus the reg

RE: Regular Expression problem?

2003-09-25 Thread Xu, Qiang (XSSC SGP)
Ted S. wrote: > Beckett Richard-qswi266 graced perl with these words of wisdom: >> That should have been s/.*\/// > > Don't you have to escape the period, too? > > s/\.*\/// No, we shouldn't, because here "." stands for any single character except a new line. thx, Regards, Xu Qiang __

RE: Mail::Sendmail module problem?

2003-09-15 Thread Xu, Qiang (XSSC SGP)
Hi, Randy, Carl, and Wilson: You are right about the current working directory issue. I didn't think of it, because previously, I have another script using a configuration file which in the same folder as the script, and it works well. But that script is in "/cgi-bin/". I perform a test. When

Mail::Sendmail module problem?

2003-09-11 Thread Xu, Qiang (XSSC SGP)
Hi, all: I am testing the perl module of Mail-Sendmail, which has been installed in my perl. Here is my script: #!d:/perl/bin/perl -w # testmail.pl - Send mail using the Mail::Sendmail module use strict; use Mail::Sendmail; my $reci

Perl dereference methods

2003-09-08 Thread Xu, Qiang (XSSC SGP)
Hi, all: If @arr is an array, and $rr is a reference to it, that is, $rr = [EMAIL PROTECTED]; When I dereference the array, shall I write @$rr, or @{$rr}? Similarly, if %hsh is an hash, and $rhsh is a reference to it, shall I use %$rhsh, or %{$rhsh) to dereference the hash? I have seen both u

RE: Clear screen

2003-08-14 Thread Xu, Qiang (XSSC SGP)
Krishna, Hari wrote: > Hi, > > Long back I asked a question related to "Delete" a file and I finally > found that there is no "Delete" but you need to use "Unlink" function. > > Now I have thoughts of using System(rm,filename); and execute it. > > Can I do it and if so what is the difference bet

RE: empty versus zero

2003-08-14 Thread Xu, Qiang (XSSC SGP)
Lynn. Rickards wrote: > Thanks Will but I'll own up to maybe not reading the spec closely > enough. Is the string " " to be considered empty? It passes defined() > nevertheless...as does the empty string ''. Embarrassing. I think the string " " is not empty. It is just initialized to a string cont

RE: error of "use lib qw(...) ;"?

2003-08-14 Thread Xu, Qiang (XSSC SGP)
Trevor Joerges wrote: > Is that a typo is there really supposed to be 2 "e" in "apachee-lib"? > > In your "Directory" directive in your http.conf file it only has one > "e". No, that is not a typo. The symbol link is "/perlib/", not "apachee-lib". The folder "apachee-lib" is not an alias, it is