perl and php and parseing

2002-12-15 Thread Jerry M . Howell II
Hello all, Not sure if any of you are familiar with the search tool called perlfect. but if anyone is I'm useing it to index a site and have a problem, it doesn't parse the .php files. Does anyone know if there is a way to make perl parse php files? any modules out there for this? -

perl and java and html

2005-08-03 Thread Sonia
Hi, I want to run PERL script which will combine several JAVA applications. Furthermore, I need this script to run in the HTML page. Is that possible? Can I run this locally on my machine, without a server? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

$_. and $_,

2004-10-13 Thread E.Horn
Hallo! Stupid question, but i am a perlbeginner! :-( What is the difference between $_. and $_, ?? Regards -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

$= and $~

2001-06-05 Thread Alan F. Larimer, Jr.
I am attempting to fo the following (pseudocode and realcode to follow): (nomal stuff with STDOUT) $old = $=; $~ = "HEADER"; $= = 25; #cuz that's how many lines on the screen (print some stuff with HEADER format) $~ = "STDOUT"; $= = $old; (more stuff with STDOUT) I

$! and $@

2003-07-08 Thread jdavis
Hello, I think these catch errors somehow... $! and $@ could someone explain this. thanks, -- jdavis <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

'' and ""

2001-09-11 Thread Matija Papec
Is there a reason why '' should be preferred over "" when using static expressions? My guess is that "" takes a little longer at compile time for perl to see if variables resides inside quotes, but don't know if this is significant to bother with single quotes. ps. I've always used "" but now my

& and >>

2007-09-04 Thread Dan Sopher
Regarding the following document: http://perldoc.perl.org/functions/system.html 1. What does ($? & 127) mean? 2. What does $? >> 8 mean? Example from the document: if ($? == -1) { print "failed to execute: $!\n";

:: and ->

2006-02-16 Thread Ken Perl
what is the difference of :: and -> in this statements? $authInstance = Operation::Auth::getInstance($session,$u->authMethod,$u->userId) $authInstance = Operation::Auth->getInstance($session,$u->authMethod,$u->userId) -- perl -e 'print unpack(u,"62V5N\"FME;

stat and chmod safety and prtability

2004-12-04 Thread JupiterHost.Net
Hello group: In attempting to set $file2 to the same mode as $file1 I do this: my $mode = (stat($file1))[2]; chmod $mode, $file2; That code does the trick but I just want to make sure of: 1) I see in perldoc -f chmod it talks about oct() but if I'm using stat's mode it should be safe not to us

Perl and mySQL and character sets.

2002-09-22 Thread Shaun Bramley
Hello all, I am currently using perl to import some information into a mysql db. At this point in time I have two issues: 1. The text files that are being imported contain both english and french text. My text editor (textpad) gladly displays the text with all proper hyphens and accentuated

regular expressions and search and replace.

2001-11-26 Thread Kris Vermeulen
also possible to replace a beginning piece and an ending piece of string and just leave the text in between? I'll give a quick example. If I have a string: "some text [LINK='page.html']linkname[/LINK] some more text" I want to replace every "[LINK='page.html&

Perl and tk, where and what?

2001-12-12 Thread Hal Johnson
Hello, I am trying to create windows interfaces for perl programs, and I've been told that the TK extension is what to get. I searched the internet and found tk800.023.tar.gz but I'm not sure if that will work with Windows 2000. Also, it seems I need a Visual C++ compiler to get it

Difference between system() and exec() and ``

2008-06-17 Thread swaroop
As we know there are 3 ways a system shell command to be executed. 1.> $var = system("command"); 2.> $var = exec("command"); 3.> $var = `command`; What is difference between these three? I found that the first two options are printing the output of the command. An

Nested if and elsif and else

2010-04-13 Thread Mimi Cafe
I think this will work, but is it elegant.? If (condition){ if (nexted_condition){ do this. } Elsif (nexted_condition){ Do that... } else{ Do something else. } } else{ Do something else.. } Mimi

Date and Time and Function calls

2007-11-25 Thread AndrewMcHorney
Hello I am looking for a perl function or functions that will give me the date and time. I am going to use the results to create a unique file name. Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: perl and java and html

2005-08-03 Thread Chris Devers
browser how to present the contents of the page text, but that's it. You can have HTML that includes or refers to Javascript (or *cough* *spit* VBScript) code, but the application interpreting the HTML handles it separately, if at all. If you want to mix HTML and Perl [note that it isn&

Re: perl and java and html

2005-08-03 Thread Tony Frasketi
Hello I would appreciate it if you would steer me to one or more of those groups you mentioned that offer pre-packaged version of Apache with Perl, MySQL and PHP for windows Can these packages run on the same machine that I have windows running? Do I access these packages from Windows

Re: perl and java and html

2005-08-03 Thread Chris Devers
On Wed, 3 Aug 2005, Tony Frasketi wrote: > I would appreciate it if you would steer me to one or more of those > groups you mentioned that offer pre-packaged version of Apache with > Perl, MySQL and PHP for windows A quick Google search turns up several: http://www.google.com

Re: perl and java and html

2005-08-03 Thread Tony Frasketi
Thanks very much Chris for the clear explanation. Sounds like just what I need - A way to completely build and check out a web site on my own compter and then be able to migrate it to a hosting service when I'm ready. Sure beats the local editing and back and forth trips from my comput

Re: perl and java and html

2005-08-03 Thread Xavier Noria
On Aug 4, 2005, at 2:47, Chris Devers wrote: You can run CGI scripts on your local computer IF you have a web server, but that's not necessarily a problem. Most versions of Unix will already include some version of the Apache web server, and there are many groups offering pre-pac

Re: perl and java and html

2005-08-04 Thread Sonia
spit* > VBScript) code, but the application interpreting the HTML handles it > separately, if at all. > > If you want to mix HTML and Perl [note that it isn't capitalized; nor is > Java for that matter], the common way to do it is with a CGI script. CGI > scripts are programs that

Re: perl and java and html

2005-08-04 Thread Alfred Vahau
Hello Try xampp for Windows for development purposes. Has Apache, MySql and PHP. Great for testing out CGI scripts using Perl on the same box. http://www.xampp.org/ Alfred Vahau Tony Frasketi wrote: Hello I would appreciate it if you would steer me to one or more of those groups you

RE: perl and java and html

2005-08-08 Thread Bliss, Kevin
Chris, Thanks for the response. In fact that is exactly what I want to do. And I know it can be done with a local web server. Let me ask you this though. Is there a way for me to utilize Javascript, or other script (such as PHP), in order to avoid using the web server? Basically, like the

Re: perl and java and html

2005-08-11 Thread Jan Eden
Sonia wrote on 03.08.2005: >Hi, I want to run PERL script which will combine several JAVA >applications. Furthermore, I need this script to run in the HTML >page. Is that possible? Can I run this locally on my machine, >without a server? > >Thanks Check out mod_perl (and Ap

Re: stat and chmod safety and prtability

2004-12-04 Thread Lawrence Statton
Because the mode contains both the file type and its permissions, you should mask off the file type portion and (s)printf using a "%o" if you want to see the real permissions. Since chmod() cannot not change the *type* of the file, th

Re: stat and chmod safety and prtability

2004-12-04 Thread JupiterHost.Net
27;s mode it should be safe not to use oct() correct? 2) $mode is really strange, ls -l shows a file as being 644 but $mode is 33188 or a directory as 755 but $mode is 16877 33188 is 0100644 16877 is 040755 from perldoc -f stat: Because the mode contains both the file ty

Installing and configuring DBI and DBD::Oracle

2001-06-08 Thread EOIN SHALLOO
> Hi, > > I hope someone can help as I am new at Perl and configuring its setup. > > Setup:NT Service Pack 5 > Oracle iAS 1.0.2.1 (with Apache Apache/1.3.12 Server) > Oracle 8.1.7 Release3 > Perl 5.00503 > > > I have downloaded the

IE and HTTP_REFERER; and a Perl test

2001-08-22 Thread Mike Breeze
gi?page="</A>; + d.URL + "&refr=" + d.referrer + "&date=" + now + "\" width=1 height=1>" ); } pr(); //--> My register.cgi instantiates a Hit object and then logs it for later analysis, the

RE: regular expressions and search and replace.

2001-11-26 Thread Bob Showalter
> -Original Message- > From: Kris Vermeulen [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 26, 2001 11:26 AM > To: [EMAIL PROTECTED] > Subject: regular expressions and search and replace. > > > Hi everyone! > > Many programming languages are taking o

RE: regular expressions and search and replace.

2001-11-26 Thread Kris Vermeulen
Hi Bob and everyone else, Many thanks for the tip and for pointing me into the correct direction! Kris > > I want to replace every "[LINK='page.html']" with > > I just want to search for [LINK= and the matching ] and just leave > > the text in betwee

Re: Perl and tk, where and what?

2001-12-12 Thread Brett W. McCoy
On Wed, 12 Dec 2001, Hal Johnson wrote: > I am trying to create windows interfaces for perl programs, and I've > been told that the TK extension is what to get. I searched the > internet and found tk800.023.tar.gz but I'm not sure if that will work > with Windows 2000. A

Re: Perl and tk, where and what?

2001-12-12 Thread Brett W. McCoy
On Wed, 12 Dec 2001, Brett W. McCoy wrote: > When that's done, type 'pktsh' at the command-line, and you get a little > interactive shell to play with stuff. That's 'ptksh', rather. -- Brett

RE: Perl and tk, where and what?

2001-12-12 Thread Gary Hawkins
> > When that's done, type 'pktsh' at the command-line, and you get a little > > interactive shell to play with stuff. > > That's 'ptksh', rather. Type 'widget' for cool demos. Text > Hypertext > 4. Arrows' for example.

Re: Difference between system() and exec() and ``

2008-06-17 Thread Jeff Peng
ference between these three? I found that the first two > options are printing the output of the command. And the third one > simply stores the output in the variable. `command` for capturing the command's output and assign it to a variable. for what's the difference between syst

Re: Difference between system() and exec() and ``

2008-06-17 Thread Chas. Owens
ference between these three? I found that the first two > options are printing the output of the command. And the third one > simply stores the output in the variable. The exec function* replaces the current process with the one specified in the arguments, so exec("bash", "-l

Re: Difference between system() and exec() and ``

2008-06-17 Thread Gunnar Hjalmarsson
looked up the answer in the docs. I think the best starting point is perldoc -f system Another thing would have been if you had made an attempt with the docs, and needed help to understand it. _That_ would have been a good reason to ask for help. -- Gunnar Hjalmarsson Email: http://www

Re: Difference between system() and exec() and ``

2008-06-17 Thread Rob Dixon
fference between these three? > > You should not have asked that question here; you should have looked up > the answer in the docs. Sheesh! This is the first thing I read on perl.beginners after time away. Are you really from the Cocos Islands, Gunnar? I think you should talk to

Re: Difference between system() and exec() and ``

2008-06-17 Thread Gunnar Hjalmarsson
have asked that question here; you should have looked up the answer in the docs. Sheesh! This is the first thing I read on perl.beginners after time away. Are you really from the Cocos Islands, Gunnar? I think you should talk to the other abusive people who like to post here and form

Re: Difference between system() and exec() and ``

2008-06-18 Thread Rob Dixon
docs. >> >> Sheesh! >> >> This is the first thing I read on perl.beginners after time away. >> >> Are you really from the Cocos Islands, Gunnar? >> >> I think you should talk to the other abusive people who like to post here >> and >&g

Re: Difference between system() and exec() and ``

2008-06-18 Thread Dr.Ruud
Rob Dixon schreef: > I think you should talk to the other abusive people who like to > post here and form a separate group. LOL Stop trying to find your way in like this! ;) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Difference between system() and exec() and ``

2008-06-18 Thread Gunnar Hjalmarsson
_the_ adequate response to a question. It was in this case IMO. Trying to put a stop to requests to use the docs sounds just idiotic to me. And I wondered if you were really from the Cocos Islands because your email has a .cc country code. No, I'm from Sweden. But the .se TLD wasn&#x

RE: Difference between system() and exec() and ``

2008-06-18 Thread Richard.Copits
have is to be able to read. I differ. I think that the best skill a programmer can have is the ability to LISTEN. More bad programs and bad projects won't get done if you have that skill/ability. Check out Matthew 7:9 and Luke 11:11 and no, I'm not religious but AM someone who many times

Re: Difference between system() and exec() and ``

2008-06-18 Thread Jenda Krynicky
;>> 1.> $var = system("command"); > >>>> 2.> $var = exec("command"); > >>>> 3.> $var = `command`; > >>>> > >>>> What is difference between these three? > >>> > >>> You should not hav

Re: Difference between system() and exec() and ``

2008-06-18 Thread Jay Savage
>> >>>> You should not have asked that question here; you should have looked up >>>> the answer in the docs. >>> >>> Sheesh! >>> >>> This is the first thing I read on perl.beginners after time away. >>> >>>

Re: Difference between system() and exec() and ``

2008-06-18 Thread Chas. Owens
On Wed, Jun 18, 2008 at 16:18, <[EMAIL PROTECTED]> wrote: snip > A signature line on an email said in effect that the best skill a > programmer > can have is to be able to read. I differ. I think that the best skill a > programmer > can have is the ability to LISTEN. More

Re: Difference between system() and exec() and ``

2008-06-18 Thread Chas. Owens
iffer. I think that the best skill a >> programmer >> can have is the ability to LISTEN. More bad programs and bad projects >> won't >> get done if you have that skill/ability. > snip > > That would be my sig, and I stick to it. Most of the time (in my > e

Re: Difference between system() and exec() and ``

2008-06-18 Thread Jay Savage
gt;>>> >> >>>> What is difference between these three? >> >>> >> >>> You should not have asked that question here; you should have looked up >> >>> the answer in the docs. >> >> >> >> I think you should ta

Re: Nested if and elsif and else

2010-04-13 Thread Jim Gibson
On 4/13/10 Tue Apr 13, 2010 4:35 PM, "Mimi Cafe" scribbled: > I think this will work, but is it elegant.? Yes, it will work, and yes, it is elegant, as long as it encapsulates the logic that is required by your program. Be sure and watch your indenting, so you can mentally grou

Re: Nested if and elsif and else

2010-04-13 Thread Uri Guttman
>>>>> "JG" == Jim Gibson writes: JG> On 4/13/10 Tue Apr 13, 2010 4:35 PM, "Mimi Cafe" JG> scribbled: >> I think this will work, but is it elegant.? JG> Yes, it will work, and yes, it is elegant, as long as it encapsulates th

Re: Nested if and elsif and else

2010-04-13 Thread Kenneth Wolcott
Hi; On Tue, Apr 13, 2010 at 19:54, Uri Guttman wrote: >>>>>> "JG" == Jim Gibson writes: > >  JG> On 4/13/10 Tue  Apr 13, 2010  4:35 PM, "Mimi Cafe" > >  JG> scribbled: > >  >> I think this will work, but is it elegant

Re: Nested if and elsif and else

2010-04-14 Thread Shlomi Fish
>} > > else{ > > Do something else. > > } > > > > } > > else{ > >Do something else.. > > } > As other people noted, it will work - you can nest if/elsif/else's (and other flow-control constructs) arbitrarily. However,

RE: Nested if and elsif and else

2010-04-14 Thread Mimi Cafe
Yes, the nested if and elsif and else makes the code difficult to read and I often get stuck trying to make sense of it all. For now, I will look to see if I can move some bit and pieces to subroutines to improve readability. Thanks guys Mimi -Original Message- From: Jim Gibson

Re: Nested if and elsif and else

2010-04-14 Thread Steve Bertrand
scribbled: >> >> >> I think this will work, but is it elegant.? >> >> JG> Yes, it will work, and yes, it is elegant, as long as it encapsulates >> the >> JG> logic that is required by your program. >> >> i disagree that it is elegant.

Re: Nested if and elsif and else

2010-04-14 Thread Raymond Wan
Hi Mimi, Mimi Cafe wrote: I think this will work, but is it elegant.? If (condition){ if (nexted_condition){ As others have noted, it will work. But as for elegance, this is a very subjective opinion and contrary to what recent comments have said, my take on it is that it depends on

Re: Nested if and elsif and else

2010-04-15 Thread Harry Putnam
work, i have over 10k lines of > perl code in one system with about 10 else's and maybe 3 elsif's. it > just is a matter of knowing how to manage flow control well and you > rarely need else's. Can someone show an example of an if/elsif/else nested construct being replace

Re: Nested if and elsif and else

2010-04-15 Thread rkb
ced >> with a modifier or >> shorter statement. without ANY serious work, i have over >> 10k lines of >> perl code in one system with about 10 else's and maybe 3 >> elsif's. it >> just is a matter of knowing how to manage flow control >> well and you &

Re: Nested if and elsif and else

2010-04-15 Thread Harry Putnam
r...@i.frys.com writes: > Here's an example I gave in a similar question in another > forum. Thanks... I'm sorry to ask more but if someone asked to be shown an if/elsif/else construct being replaced by a dispatch table, I don't really see how that answered there question. It didn't for me. W

Re: Nested if and elsif and else

2010-04-15 Thread Jim Gibson
On 4/15/10 Thu Apr 15, 2010 9:21 AM, "Harry Putnam" scribbled: > r...@i.frys.com writes: > >> Here's an example I gave in a similar question in another >> forum. > > Thanks... > > I'm sorry to ask more but if someone asked to be shown an > if/elsif/else construct being replaced by a dispatc

Re: Nested if and elsif and else

2010-04-15 Thread Ron Bergin
On Apr 15, 9:21 am, rea...@newsguy.com (Harry Putnam) wrote: > r...@i.frys.com writes: > > Here's an example I gave in a similar question in another > > forum. > > Thanks... > > I'm sorry to ask more but if someone asked to be shown an > if/elsif/else construct being replaced by a dispatch table, I

Re: Nested if and elsif and else

2010-04-15 Thread Harry Putnam
if/elsif/else part, so I won't duplicate > it. Yes, and thanks to both of you for making it clear even to me. You fella's have lots of patience. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Date and Time and Function calls

2007-11-25 Thread yitzle
time will give you the number of seconds since the epoch. This is good so long as you don't expect to create two files in one second. http://perldoc.perl.org/functions/time.html "For measuring time in better granularity than one second, you may use either the Time::HiRes module (from

Re: Date and Time and Function calls

2007-11-25 Thread Tom Phoenix
On 11/24/07, AndrewMcHorney <[EMAIL PROTECTED]> wrote: > I am looking for a perl function or functions that will give me the > date and time. Are you looking in the perlfunc manpage? Type 'perldoc perlfunc' at a prompt (or into your favorite search engine) to get started

Re: Date and Time and Function calls

2007-11-25 Thread rahed
AndrewMcHorney <[EMAIL PROTECTED]> writes: > Hello > > I am looking for a perl function or functions that will give me the > date and time. I am going to use the results to create a unique file > name. There are many posibilities depending on uniqueness, this is quite simil

Re: Date and Time and Function calls

2007-11-25 Thread Dr.Ruud
rahed schreef: > AndrewMcHorney: >> I am looking for a perl function or functions that will give me the >> date and time. I am going to use the results to create a unique file >> name. > > There are many posibilities depending on uniqueness, > this is quite simila

Re: Date and Time and Function calls

2007-11-25 Thread Martin Barth
Hi Andrew, I would suggest http://search.cpan.org/~tjenness/File-Temp-0.19/Temp.pm HTH Martin On Sat, 24 Nov 2007 08:44:18 -0800 AndrewMcHorney <[EMAIL PROTECTED]> wrote: > Hello > > I am looking for a perl function or functions that will give me the > date and time. I a

pack and unpack .. and 16 bit integers

2005-08-19 Thread zach
hi, first, sorry for my english and i hope you understand. Honestly im still confused with all defines like : 1. Unsigned Char value, is that 'invisible char'? like we press 'spacebar key' or 'ctrl+f1' ? 2. In perlfunc pack i read something like this -> 'th

Re: $_. and $_,

2004-10-13 Thread Jose Alves de Castro
On Wed, 2004-10-13 at 10:48, E.Horn wrote: > Hallo! Hi. > Stupid question, but i am a perlbeginner! :-( > What is the difference between $_. and $_, ?? $_ is a variable (the context variable) A single dot is the concatenation operator A single comma is the list separator So: $_. isn

Re: $= and $~

2001-06-05 Thread Jeff 'japhy' Pinyan
On Jun 5, Alan F. Larimer, Jr. said: >$old = $=; >$~ = "HEADER"; >$= = 25; #cuz that's how many lines on the screen >(print some stuff with HEADER format) >$~ = "STDOUT"; >$= = $old; > >I used a print statement to ensure that $= is being set p

Re: $= and $~

2001-06-05 Thread Jeff 'japhy' Pinyan
t;>$= = $old; >> >>I used a print statement to ensure that $= is being set properly, and >>it is. But when I print stuff with HEADER format, it seems to not >>stick with that new $= = 25; Yes, the output is still going to STDOUT >>(screen), where I want it, but just not

Re: $= and $~

2001-06-05 Thread Alan F. Larimer, Jr.
> >>$old = $=; > >>$~ = "HEADER"; > >>$= = 25; #cuz that's how many lines on the screen > >>(print some stuff with HEADER format) > >>$~ = "STDOUT"; > >>$= = $old; > >> > >>I used a print statem

Re: $= and $~

2001-06-05 Thread Jeff 'japhy' Pinyan
On Jun 5, Alan F. Larimer, Jr. said: >> >>$old = $=; >> >>$~ = "HEADER"; >> >>$= = 25; #cuz that's how many lines on the screen >> >>(print some stuff with HEADER format) >> >>$~ = "STDOUT"; >> >&

Re: $= and $~

2001-06-06 Thread Alan F. Larimer, Jr.
*FH, *SAVE); # create local to use here > > pipe READ, WRITE; # open the pipes for in and out > *FH = $fh; # ??? Help me here, assigns reference ># of $fh ??? > open SAVE, ">&FH"; # output SAVE > open FH, ">

Re: $= and $~

2001-06-06 Thread Jeff 'japhy' Pinyan
are only needed locally. >> pipe READ, WRITE; # open the pipes for in and out Create an output filehandle, *WRITE, and the input filehandle *READ that reads from it. >> *FH = $fh; # ??? Help me here, assigns reference >># of $fh ???

RE: $! and $@

2003-07-08 Thread Gupta, Sharad
-- From: jdavis [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 1:39 PM To: perl Subject: $! and $@ Hello, I think these catch errors somehow... $! and $@ could someone explain this. thanks, -- jdavis <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: $! and $@

2003-07-08 Thread Janek Schleicher
Jdavis wrote at Tue, 08 Jul 2003 14:39:17 -0600: > I think these catch errors somehow... > > $! and $@ > > could someone explain this. Perl can explain it to you, just read: perldoc perlvar Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

$_ @_ and others

2002-12-03 Thread Duarte Cordeiro
, but perl seems to "help" programmers make fuzzy and hard to understand scripts. but why use $_ or even nothing ( because almost every function can use $_ by default)? if I have a problem in a script, and I see a $_, I just have to backtrack and read the actual code just to see

Re: '' and ""

2001-09-12 Thread Maxim Berlin
Hello Matija, Tuesday, September 11, 2001, Matija Papec <[EMAIL PROTECTED]> wrote: MP> Is there a reason why '' should be preferred over "" when using static MP> expressions? My guess is that "" takes a little longer at compile time for at run time. inside loop, for example. MP> perl to see if

and, or, &&, ||

2001-09-25 Thread Christine Lenda
Hello! I remember someone mentioning that there may be a precedence problem with "unexpected results" during a mathematical conditional test, using the keywords "and" and "or"...instead of the symbols (&& and ||). Is this true? Can anyon

Re: & and >>

2007-09-04 Thread Chas Owens
On 9/4/07, Dan Sopher <[EMAIL PROTECTED]> wrote: snip > 1. What does ($? & 127) mean? snip It means binary and $? with 127. It is useful because the lower seven bits of $? are set to the signal a child process received that caused it to die. Bit eight will be set if there wa

Re: & and >>

2007-09-04 Thread yitzle
, the exit value of the subprocess is really ($?>> 8 ), and $? & 127 gives which signal, if any, the process died from, and $? & 128 reports whether there was a core dump. (Mnemonic: similar to sh and ksh.). wait() man page: http://bama.ua.edu/cgi-bin/man-cgi?wait+2 o If the child p

Re: & and >>

2007-09-04 Thread yitzle
To address the subject, & is the bitwise AND operator and >> is the bitwise shift. & is used as a mask and >> is used to access higher bits. Wikipedia explains bitwise operations. If you don't know about them, you may want to read the article. http://en.wikipedia.org/wiki/

Re: :: and ->

2006-02-16 Thread Chas Owens
On 2/16/06, Ken Perl <[EMAIL PROTECTED]> wrote: > what is the difference of :: and -> in this statements? > > $authInstance = > Operation::Auth::getInstance($session,$u->authMethod,$u->userId) > > $authInstance = > Operation::Auth->getInstance($session,$u-&

Re: :: and ->

2006-02-17 Thread Hans Meier (John Doe)
Ken Perl am Freitag, 17. Februar 2006 02.34: > what is the difference of :: and -> in this statements? > > $authInstance = > Operation::Auth::getInstance($session,$u->authMethod,$u->userId) > > $authInstance = > Operation::Auth->getInstance($session,$u->authM

Re: :: and ->

2006-02-18 Thread Ken Perl
This is really very clear. On 2/17/06, Hans Meier (John Doe) <[EMAIL PROTECTED]> wrote: > Ken Perl am Freitag, 17. Februar 2006 02.34: > > what is the difference of :: and -> in this statements? > > > > $authInstance = > > Operation::Auth::getInstanc

Re: :: and ->

2006-02-18 Thread Bob Showalter
Ken Perl wrote: what is the difference of :: and -> in this statements? $authInstance = Operation::Auth::getInstance($session,$u->authMethod,$u->userId) This is a subroutine call, passing 3 arguments. $authInstance = Operation::Auth->getInstance($session,$u->authMethod,$u-

& and subroutine

2012-04-16 Thread Paul.G
Hi All Have a question, is it good coding practice to use a & when calling a subroutine, or it is not required, or it doesn't matter? eg: sub name { some code here, returning a single value return 0; } &name(); cheers

Re: Extracting Directories and Sub Directories and Counting

2004-10-28 Thread Gunnar Hjalmarsson
\.\w+$/; } for my $dir (sort keys %HoA ) { print "$dir\n", join( "\n", @{ $HoA{$dir} } ), "\n\n"; } ...worked out fine. This one took some thought for me to wrap my head around. Thank you so *very* much for showing me something new and very useful. I now realize

Re: Extracting Directories and Sub Directories and Counting

2004-10-29 Thread Ron Smith
; > > > for my $dir (sort keys %HoA ) { > >print "$dir\n", join( "\n", @{ $HoA{$dir} } > ), "\n\n"; > > } > > > > ...worked out fine. This one took some thought for > me to wrap my > > head around. Thank you so *ver

Re: Extracting Directories and Sub Directories and Counting

2004-10-29 Thread Gunnar Hjalmarsson
Ron Smith wrote: The following is the re-worked script: snip- #!/usr/bin/perl -w use strict; my %HoA; for ( `dir /b/s` ) { push @{ $HoA{$1} }, $2 if /(.+)\\(\w+)\.(\d+)\.(\w+)$/; } The two last pairs of parentheses are redundant. my %count; for my $dir (

Re: Extracting Directories and Sub Directories and Counting

2004-10-29 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: for my $dir ( sort keys %HoA ) { print "$dir\n"; my @basenames = @{ $HoA{$dir} }; my %count; for my $frames ( @basenames ) { $count{$frames} += 1; } for ( sort keys %count ) { printf "%30s\t%04d\n"

Re: Extracting Directories and Sub Directories and Counting

2004-11-01 Thread Ron Smith
Hey Gunnar, and list, ---snip print "\n"; my %HoA; for ( `dir /b/s` ) { push @{ $HoA{$1} }, $2 if /(.+)\\(\w+)\.\d+\.\w+$/; } for my $dir ( sort keys %HoA ) { print join ( "\n", $dir ), "\n\n"

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
Ron Smith wrote: If I wanted to add more fields to my output, which construct would I use to create more fields; something like the following? basenamecountextensionsize ...maybe 'HoH', or just expand on the 'HoA? I suppose that you are not really talking about the output now, but rathe

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
.perl.misc (see below). Any comments on that, Ron? Original Message Subject: Re: Extracting Directories and Sub Directories and Counting Date: Tue, 02 Nov 2004 13:40:21 +0100 From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> Newsgroups: comp.lang.perl.misc References: <[EMA

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Ron Smith
Pardon me Gunnar, etal, I'm new and thought that the 'comp.lang.perl.misc' post was entirely separate from '[EMAIL PROTECTED]', reaching an entirely different audience. I eanestly appologize to everyone on both lists. My bad!! I have spanked my own hand with a digita

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Chris Devers
On Tue, 2 Nov 2004, Ron Smith wrote: > I'm new and thought that the 'comp.lang.perl.misc' post was entirely > separate from '[EMAIL PROTECTED]', reaching an entirely different > audience. I eanestly appologize to everyone on both lists. It's a separate

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
Ron Smith wrote: Gunnar Hjalmarsson wrote: You multi-posted basically the same question to comp.lang.perl.misc (see below). Any comments on that, Ron? Pardon me Gunnar, etal, I'm new and thought that the 'comp.lang.perl.misc' post was entirely separate from '[EMAIL PROT

Re: Extracting Directories and Sub Directories and Counting

2004-11-02 Thread Gunnar Hjalmarsson
Ron Smith wrote: Gunnar Hjalmarsson wrote: You multi-posted basically the same question to comp.lang.perl.misc (see below). Any comments on that, Ron? Pardon me Gunnar, etal, I'm new and thought that the 'comp.lang.perl.misc' post was entirely separate from '[EMAIL PROT

Re: Extracting Directories and Sub Directories and Counting

2004-11-03 Thread Ron Smith
size => 2000, >}, >{ > basename => 'name3', > extension => 'gif', > size => 1500, >}, > ], >

Re: Installing and configuring DBI and DBD::Oracle

2001-06-08 Thread Ken
owing link: http://www.activestate.com/PPMPackages/zips/6xx-builds-only/ If it says 5xx you want this: http://www.activestate.com/PPMPackages/zips/5xx-builds-only/ Download the files and follow the instructions in the readme file. - Original Message - From: "EOIN SHALLOO" &l

RE: Installing and configuring DBI and DBD::Oracle

2001-06-08 Thread EOIN SHALLOO
Hi, I've come a long way since that posting but have hit a new impasse. Here are the steps taken so far: I downloaded IndigoPerl and am using IndigoPerl Build 626. http://www.indigostar.com/indigoperl.htm I downloaded a copy of nmake.exe from Microsoft http://download.microsoft.com/dow

  1   2   3   4   5   6   7   8   9   10   >