Re: Perl equivalent of PHP globals?

2008-10-24 Thread Jeff Pang
2008/10/25 Kelly Jones <[EMAIL PROTECTED]>: > How can I see all the local, global, etc Perl variables defined at a > given point in my program? > see this: http://perl.plover.com/FAQs/Namespaces.html -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Apache mod_perl concept

2008-10-24 Thread Jeff Pang
2008/10/23 howa <[EMAIL PROTECTED]>: > Hello, > > As described in the mod_perl documents, Apache can share variable > (i.e. data) if they are declared during Apache start up. > > So if I have a shared variable during startup, storing the DBI > handler, I assume all the process is sharing this same

Re: Use of dollar signs before subroutine definition

2008-10-24 Thread John W. Krahn
Kelly Jones wrote: I saw something like this in a mimedefang tutorial: sub foo () {return 1;} By trial and error, I discovered this means: foo takes EXACTLY four arguments, no less, no more. Where can I learn more about this syntax/feature? http://groups.google.com/group/comp.lang.perl.m

Perl equivalent of PHP globals?

2008-10-24 Thread Kelly Jones
How can I see all the local, global, etc Perl variables defined at a given point in my program? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. --

Use of dollar signs before subroutine definition

2008-10-24 Thread Kelly Jones
I saw something like this in a mimedefang tutorial: sub foo () {return 1;} By trial and error, I discovered this means: foo takes EXACTLY four arguments, no less, no more. Where can I learn more about this syntax/feature? -- We're just a Bunch Of Regular Guys, a collective group that's try

Re: perl and GPG module

2008-10-24 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > Week two noob here. > > I am writing a script to download encrypted files using ftp then after > they're downloaded decrypt them. I can't seem to get the GPG decrypt > module to work though. The script does work when I use "system" to > call another script using gpg d

Re: Converting Video to FLV

2008-10-24 Thread Nigel Peck
On Thu, 23 Oct 2008 20:41:14 +0100, [EMAIL PROTECTED] (Nigel Peck) wrote: No perl module, but here are a couple of external commands which you can run from a perl script. [snip] You can also search google and groups.google for many examples of "mencoder convert flv". Thanks Zentara, that's great

perl and GPG module

2008-10-24 Thread [EMAIL PROTECTED]
Hello, Week two noob here. I am writing a script to download encrypted files using ftp then after they're downloaded decrypt them. I can't seem to get the GPG decrypt module to work though. The script does work when I use "system" to call another script using gpg directly. Here is the script. I w

Re: Output

2008-10-24 Thread Brian
John W. Krahn wrote: Brian wrote: Hello Hello, Having played around for a while, I am able to get a reasonable result using Example 1, the unreasonable part being that l> gets added to the end of the file, I can only presume here that it is duplicating the last 2 characters of the last lin

Re: ignore directories with File::Find?

2008-10-24 Thread John W. Krahn
protoplasm wrote: On Oct 23, 2:09 am, [EMAIL PROTECTED] (John W. Krahn) wrote: Perhaps you need to use the -xdev switch for find to ignore other file systems? Thank you, John. That certainly helped. It now ignores the mounted file systems but still traverses hidden directories. I must be overl

Re: Output

2008-10-24 Thread John W. Krahn
Brian wrote: Hello Hello, Having played around for a while, I am able to get a reasonable result using Example 1, the unreasonable part being that l> gets added to the end of the file, I can only presume here that it is duplicating the last 2 characters of the last line in the file, that be

Re: ignore directories with File::Find?

2008-10-24 Thread protoplasm
On Oct 23, 2:09 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > Perhaps you need to use the -xdev switch for find to ignore other file > systems? Thank you, John. That certainly helped. It now ignores the mounted file systems but still traverses hidden directories. I must be overlooking something s

Apache mod_perl concept

2008-10-24 Thread howa
Hello, As described in the mod_perl documents, Apache can share variable (i.e. data) if they are declared during Apache start up. So if I have a shared variable during startup, storing the DBI handler, I assume all the process is sharing this same handler? So if one Apache is doing query, is tha

Output

2008-10-24 Thread Brian
Hello Having played around for a while, I am able to get a reasonable result using Example 1, the unreasonable part being that l> gets added to the end of the file, I can only presume here that it is duplicating the last 2 characters of the last line in the file, that being . Q1. Am I presumi

Re: match and putting in a variable with a single statement

2008-10-24 Thread Bryan R Harris
> On Fri, Oct 24, 2008 at 8:42 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: >> >> >> On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]> >> wrote: >> >>> Hi, >>> >>> I was just trying to match a string and save it in a single statement >>> as follows: >>> >>> $extracted = "cp xyz";

Re: match and putting in a variable with a single statement

2008-10-24 Thread Lawrence Statton
> > I was just trying to match a string and save it in a single statement > as follows: > > $extracted = "cp xyz"; > $state_var = $extracted =~ m/cp\s+(.*)/; > print "$state_var $1 \n"; > > The output is: 1 xyz > > So the assignment to $state_var does not work. Is this an incorrect way. > The

Re: match and putting in a variable with a single statement

2008-10-24 Thread Sharan Basappa
On Fri, Oct 24, 2008 at 8:42 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > > > On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]> > wrote: > >> Hi, >> >> I was just trying to match a string and save it in a single statement >> as follows: >> >> $extracted = "cp xyz"; >> $state_var = $ex

Re: match and putting in a variable with a single statement

2008-10-24 Thread Chas. Owens
On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]> wrote: Hi, I was just trying to match a string and save it in a single statement as follows: $extracted = "cp xyz"; $state_var = $extracted =~ m/cp\s+(.*)/; print "$state_var $1 \n"; The output is: 1 xyz So the assignment t

Re: match and putting in a variable with a single statement

2008-10-24 Thread Rob Coops
On Fri, Oct 24, 2008 at 5:00 PM, Sharan Basappa <[EMAIL PROTECTED]>wrote: > Hi, > > I was just trying to match a string and save it in a single statement > as follows: > > $extracted = "cp xyz"; > $state_var = $extracted =~ m/cp\s+(.*)/; > print "$state_var $1 \n"; > > The output is: 1 xyz > > So

match and putting in a variable with a single statement

2008-10-24 Thread Sharan Basappa
Hi, I was just trying to match a string and save it in a single statement as follows: $extracted = "cp xyz"; $state_var = $extracted =~ m/cp\s+(.*)/; print "$state_var $1 \n"; The output is: 1 xyz So the assignment to $state_var does not work. Is this an incorrect way. Regards -- To unsubscr

Re: Conditional replace

2008-10-24 Thread Brian
Brian wrote: John W. Krahn wrote: Brian wrote: Partial success. The value is normally located starting at the 35th char into the line. I split the line so it was at the beginning of a new line and worked. Unfortunately the dates never changed. I will sleep on this and attack it again in

GD::Graph - two independent y axes

2008-10-24 Thread Yaacov Yoseph Weiss
Hi, I found the option for using 2 y axis in GD::Graph, (using the 'two_axes' option, and y1_,y2_, options.) However, I found that this only allows the two axes to have different scales, but not be completely independent. For example, if I want the first of the axis to run between -1 and 1, and