Re: what role is + in open's file argument?

2007-12-05 Thread reader
"Tom Phoenix" <[EMAIL PROTECTED]> writes: >> What does the `+' signify? > > Have you seen the documentation for the open function? It's listed > with the other functions in the perlfunc manpage, or here: > > http://perldoc.perl.org/functions/open.html Egad... what a dimwit... but at least you

Re: what role is + in open's file argument?

2007-12-05 Thread Tom Phoenix
On 12/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I must have known the answer to this at some point because I find it > in my own code various places. But I cannot recall what it is > supposed to do.. Searching this group shows many instances of its use > but no explanation I saw. > >

what role is + in open's file argument?

2007-12-05 Thread reader
I must have known the answer to this at some point because I find it in my own code various places. But I cannot recall what it is supposed to do.. Searching this group shows many instances of its use but no explanation I saw. open(FILE,"+>$file") [...] ; What does the `+' signify? -- To un

Re: Directory management

2007-12-05 Thread Steve Bertrand
>>> tar -c /[a-z]/200[24] >> I didn't even think that such a regex would work underneath such a >> command. Pardon my ignorance. > > It is not a regex, it is a file glob. > > man 7 glob I had no idea. Not that I want to, but I can now think of numerous things I can lift up a level (or essentiall

Re: regular expression question

2007-12-05 Thread John W . Krahn
On Wednesday 05 December 2007 09:53, Perl WANNABE wrote: > * Dr.Ruud <[EMAIL PROTECTED]> [2007-12-02 14:34]: > > John W . Krahn schreef: > > > Eric Krause: > > > > > > $ perl -le' > > > $_ = q[1xxx1111xx11x1]; > > > print; > > > s/(1+)/@{[($l=$1)=~y|1|1|]}/g; > > > print; > > > ' >

Re: regular expression question

2007-12-05 Thread Perl WANNABE
* Dr.Ruud <[EMAIL PROTECTED]> [2007-12-02 14:34]: > John W . Krahn schreef: > > Eric Krause: > > > $ perl -le' > > $_ = q[1xxx1111xx11x1]; > > print; > > s/(1+)/@{[($l=$1)=~y|1|1|]}/g; > > print; > > ' > > 1xxx1111xx11x1 > > 5xxx26xx2x1 > > :-) > > Aiaiaiai

Re: Directory management

2007-12-05 Thread John W . Krahn
On Wednesday 05 December 2007 16:35, Steve Bertrand wrote: > > > > Why can't you just use file globbing in the shell: > > > > tar -c /[a-z]/200[24] > > I didn't even think that such a regex would work underneath such a > command. Pardon my ignorance. It is not a regex, it is a file glob. man 7 gl

Retrieving stock data from the web

2007-12-05 Thread Perl
Hi All. I want to download historical stock financial data (EPS, growth, sales revenue etc.) from the web. My intention is to populate a MYSQL database with these values and then perform a series of calculations against the database for my personal investing. A sample of the data I want to ret

Re: Directory management

2007-12-05 Thread Steve Bertrand
>> Essentially, I need the following populated to a file: >> >> /a/2003 >> /a/2004 >> /b/2003 >> /b/2004 >> >> ...etc. >> >> I can provide code, but to be honest, I am working so hard on >> developing module subroutines for RADIUS accounting/billing >> management, I'm just hoping for an easy one-li

Re: Installing Date::Calc

2007-12-05 Thread Eko Budiharto
It is strange that C compiler does not include in the first time installation. I installed solaris 8 and Fedora, red hat, I always get C compiler when I installed the OS and I rarely does not get C compiler. Only last time, I installed Date::Calc in my FC6 machine, it was asked the newest GCC vers

Re: Directory management

2007-12-05 Thread John W . Krahn
On Wednesday 05 December 2007 15:59, Steve Bertrand wrote: > > I have a quick & dirty question on directory management, and I'd like > to whip up a solution once, and reuse as necessary. > > There is a directory structure, in which I want to tar up X number of > directories every year. Here is the

Directory management

2007-12-05 Thread Steve Bertrand
I have a quick & dirty question on directory management, and I'd like to whip up a solution once, and reuse as necessary. There is a directory structure, in which I want to tar up X number of directories every year. Here is the structure: / - |- a | - 2003 | - 2004 | - 200

Re: regex parsing-Beginner

2007-12-05 Thread Gunnar Hjalmarsson
minky arora wrote: There is one thing I need to figure out.The last step: So,what I need to do is,for the gene names where the difference in range is not zero,I need to report the lines at the end of the file(The sequence of strings) that contain that range. So, you keep reformulating the prob

Re: Installing Date::Calc

2007-12-05 Thread Tom Phoenix
On 12/5/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > Installing GCC on the box would be a major problem and one > that I would rather not get into. Having a C compiler would probably make your life easier in the long run. And, unless you've got a seriously weird box, installing GCC is pr

Re: regex parsing-Beginner

2007-12-05 Thread minky arora
Hi, Thanks evryone you helped me with this problem.I have reported all parts of the file as was needed.There is one thing I need to figure out.The last step: So,what I need to do is,for the gene names where the difference in range is not zero,I need to report the lines at the end of the file(The

Re: Installing Date::Calc

2007-12-05 Thread Gerald Wheeler
Peter, Installing GCC on the box would be a major problem and one that I would rather not get into. Why does Perl assume (if this is the case) that everyone who uses perl has access to a compiler?? I can not believe that most perl users have access to a C compiler? One would think that at l

Re: Net:FTP send JOB from Windows to z/OS mainframe and get output

2007-12-05 Thread yitzle
CPAN Net::FTP sats it inherits from Net::Cmd Take a look at Net::Cmd http://search.cpan.org/~gbarr/libnet-1.22/Net/Cmd.pm It got a bunch of methods that look like they may help you, eg debug(), response() -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Net:FTP send JOB from Windows to z/OS mainframe and get output

2007-12-05 Thread mariusz
Hello list, I am able to send a JOB to z/OS usinf Net::FTP. But I would like to receive the job output of the submitted job too. Do you know how should be used Net::FTP to achieve this ? Best regards Mariusz -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Use of uninitialized value in pattern match (m//)

2007-12-05 Thread Ankur Jain
You're right, I am passing a numeric value to the function and encountering the error. I used the function provided by you and it's working fine. Thanks Ankur Jain On Dec 4, 2007 8:27 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Ankur wrote: > > > > I am running the following code and receiving th