Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-19 Thread Jenda Krynicky
From: "Omega -1911" <[EMAIL PROTECTED]> > And I used to love your articles in various mags... Thank God for the > many others that are *really* here to help on this list. Sometimes the best help you can get is a slap and an explanation why you got it. You might not like it at the moment, but it

Re: Regex Help

2007-11-19 Thread Jenda Krynicky
From: "Dr.Ruud" <[EMAIL PROTECTED]> > "Jenda Krynicky" schreef: > > { > > my $static; > > sub foo { > > $static++; > > ... > > } > > } > > There (the first declared version of) the variable $static is part of > the environment of foo(). Don't mistake that for staticness. Maybe I don

Chomping directories

2007-11-19 Thread Gianluca Tognin
Hi, Well I got to test check a dir. If I select /etc or /home/user it works. But if I leave a blank, just only ENTER I got the below error. "/home/user exist and is rwx". What I'm missing in my script? - - - - - - - - - - - - - - - - - - - - - - - - - - - - #!/usr/bin/perl use diagnostics; use s

Re: Checking the two variable

2007-11-19 Thread Dr.Ruud
sivasakthi schreef: > I have the two variables, like below, > > $val1=[15/Apr/2005:11:46:35 +0300]; > $val2=[12/Nov/2007:14:59:00 +0530]; In stead of using such numbers in variable names, use an array. my @dates; $dates[0] = q[15/Apr/2005:11:46:35 +0300]; $dates[1] = q[12/Nov/2007:14

Re: CPAN auxiliary pages & indexing

2007-11-19 Thread Dr.Ruud
"Karl Erisman" schreef: > What conditions on a CPAN module must hold in order for cpantesters > and cpanform to create pages for that dist? My module, App::Smbxfer, > is indexed and in the module list. It shows up on most of the CPAN > pages (i.e. it is on the other CPAN search pages, ANNOCPAN,

Re: Meta: please don't mail here if you have huge useless pointless disclaimers

2007-11-19 Thread Dr.Ruud
"Omega -1911" schreef: > Thank God for the > many others that are *really* here to help on this list. *PLONK* -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Split string into array

2007-11-19 Thread Dr.Ruud
"Tom Phoenix" schreef: > my @pieces = split / /, "a b c d"; split() has a great default mode, that you get when you supply a string value, only containing a single space, as the first parameter. my @pieces = split " ", " ab c d "; -- Affijn, Ruud "Gewoon is een tijger." -- To uns

A question about the Llama exercises

2007-11-19 Thread Telemachus Odysseos
Maybe a better title is "A question about the comments on one of the answers to an exercise." Anyhow, this seems like a reasonable place to ask. I just finished doing the exercises for chapter 4 in the Llama book (on subroutines) and for question 3, I produced this for a subroutine to collect numbe

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-19 Thread Rob Dixon
Jenda Krynicky wrote: > From: "Omega -1911" <[EMAIL PROTECTED]> >> And I used to love your articles in various mags... Thank God for the many others that are *really* here to help on this list. Sometimes the best help you can get is a slap and an explanation why you got it. You might not li

Rename Files

2007-11-19 Thread Allison Baldoni
Hello, I'm trying to write a script that will browse a windows directory and rename all files in it and its subdirectories. A file name such as 123TEST987.docneeds to be renamed to 123987.doc. all files have TEST in the name. I am unsure of the best way to do this. I have been trying to use glob

Re: Rename Files

2007-11-19 Thread yitzle
The easy way: there's some File module on CPAN that might do this. My way: In order to go through multiple folders you would need a loop of some sort. If you intend to go into folders recursively (open all the folders inside all the folders inside ... ) you probably need a recursive function. You

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-19 Thread Chas. Owens
On Nov 19, 2007 9:13 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: snip > Hey, if Randal can get upset by daft disclaimers, why can't someone else > take offence at a long advertising sig? snip People can do whatever they want, but there is always the question of reasonableness. Schwartz's sig is four

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-19 Thread Dyana Wu
On 20 Nov 2007, at 12:29 PM, Chas. Owens wrote: -snip- People can do whatever they want, but there is always the question of reasonableness. -snip- Can we all agree that we've officially gone past any semblance of "reasonableness" by having had this thread continue after it has already achieve

Re: A question about the Llama exercises

2007-11-19 Thread Chas. Owens
On Nov 19, 2007 8:37 PM, Telemachus Odysseos <[EMAIL PROTECTED]> wrote: > Maybe a better title is "A question about the comments on one of the answers > to an exercise." Anyhow, this seems like a reasonable place to ask. I just > finished doing the exercises for chapter 4 in the Llama book (on > su

Re: Rename Files

2007-11-19 Thread Chas. Owens
On Nov 19, 2007 10:32 PM, Allison Baldoni <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to write a script that will browse a windows directory and rename > all files in it and its subdirectories. A file name such as > 123TEST987.docneeds to be renamed to > 123987.doc. all files have TEST in t

Re: Tk question about -command=>sub{} and Text Insert()

2007-11-19 Thread Panda-X
2007/11/19, zentara <[EMAIL PROTECTED]>: > > On Mon, 19 Nov 2007 00:14:29 +0800, [EMAIL PROTECTED] (Panda-X) > wrote: > > >Hi all, > > > >Below is my code. With this code, 12345 will show at once > >after 5 seconds I click the button. > >But what I want is to insert() each number per second. > >Is

how to add .h files to .xs

2007-11-19 Thread Daniel
Hi, I am handling a project needing to call DLL by perl. I wrote the core code in C++ and I want to call these classes and functions in .xs. However, I don't know how to achieve this... First of all, I must include .h files in .xs, so I should add .h files in the same directory as .xs. I want to a