Re: $^I

2008-05-11 Thread Richard Lee
Chas. Owens wrote: On May 11, 2008, at 18:04, Richard Lee wrote: I just looked it up on perldoc perlvar, but I am still not sure what it does. $^I The current value of the inplace-edit extension. Use "undef" to disable inplace editing. (Mnemonic: value of -i switch.) I

Re: $^I

2008-05-11 Thread Chas. Owens
On May 11, 2008, at 18:04, Richard Lee wrote: I just looked it up on perldoc perlvar, but I am still not sure what it does. $^I The current value of the inplace-edit extension. Use "undef" to disable inplace editing. (Mnemonic: value of -i switch.) I was reading perl c

$^I

2008-05-11 Thread Richard Lee
I just looked it up on perldoc perlvar, but I am still not sure what it does. $^I The current value of the inplace-edit extension. Use "undef" to disable inplace editing. (Mnemonic: value of -i switch.) I was reading perl cookbook and saw this example, and was wondering

Re: Can't run PERL scripts on a shared server?

2008-05-11 Thread Teo
On May 11, 12:57 am, [EMAIL PROTECTED] (Hotkitty) wrote: > I've been trying to setup a connection w/ a shared server at > godaddy.com. The script won't work and when I called them they tell me > that because I don't have a dedicated server that I can't run a perl > script and so I need to upgrade m

Re: comparing two binary numbers

2008-05-11 Thread Chris Charley
- Original Message - From: ""Johnson Lau"" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Sunday, May 11, 2008 1:09 AM Subject: comparing two binary numbers Dear all, I need to compare two binary numbers and need perl to return the number of matching bits. For example:

Re: Please help critcize and shorten my sub code

2008-05-11 Thread Rob Dixon
Jenda Krynicky wrote: > > Only the loops that need to be labeled should be labeled. I agree. Apart from your spelling of 'labelled' :) Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Can't run PERL scripts on a shared server?

2008-05-11 Thread J. Peng
On Sun, May 11, 2008 at 6:57 AM, hotkitty <[EMAIL PROTECTED]> wrote: > I've been trying to setup a connection w/ a shared server at > godaddy.com. The script won't work and when I called them they tell me > that because I don't have a dedicated server that I can't run a perl > script and so I need

Re: perl-support for vim help needed

2008-05-11 Thread Süleyman Gülsüner
don't forget to instal perl-support for vim: http://www.vim.org/scripts/script.php?script_id=556 here is the desc: description - insert various types of comments - insert complete but empty statements (e.g. 'if {} else {}' ) - insert often used code snippets (e.g. declarations, the opening of

Re: Please help critcize and shorten my sub code

2008-05-11 Thread Jenda Krynicky
From: Peter Scott <[EMAIL PROTECTED]> > On Sun, 11 May 2008 02:05:06 +0200, Jenda Krynicky wrote: > > You do not need the label unless you need to jump out of some other > > loop than the innermost. In this case there are no nested loops so it > > would probably be better to skip the label. > >

Re: Text formatting issues

2008-05-11 Thread Dr.Ruud
hotkitty schreef: > I've been reading through the modules and the link you provided but it > seems pretty involved. I don't think it should be very difficult: all > that I am trying to do is create a multi-page PDF file with text in > it. Isn't there an easier way to do that? Alternatives to cons

Re: Please help critcize and shorten my sub code

2008-05-11 Thread Peter Scott
On Sun, 11 May 2008 02:05:06 +0200, Jenda Krynicky wrote: > You do not need the label unless you need to jump out of some other > loop than the innermost. In this case there are no nested loops so it > would probably be better to skip the label. While I personally program the way you suggest, ta

Re: Text formatting issues

2008-05-11 Thread Rob Dixon
hotkitty wrote: > > Well, it should be a pretty straightforward thing, right? No. Sizing and placing text in a page isn't trivial, and people pay huge amounts of money for DTP software to achieve it conveniently. > There has to be someone, somewhere that has taken text and created a pdf file > w

Can't run PERL scripts on a shared server?

2008-05-11 Thread hotkitty
I've been trying to setup a connection w/ a shared server at godaddy.com. The script won't work and when I called them they tell me that because I don't have a dedicated server that I can't run a perl script and so I need to upgrade my account. I can access the shared server w/ PHPwhy can't I d

Re: comparing two binary numbers

2008-05-11 Thread sisyphus
On May 11, 3:09 pm, [EMAIL PROTECTED] (Johnson Lau) wrote: > Dear all, > > I need to compare two binary numbers and need perl to return the > number of matching bits. > > For example: > > $aaa = "1000"; > $bbb = "00101100"; > > In this case, the number of matching bits is 6. > use strict; use

Re: Text formatting issues

2008-05-11 Thread hotkitty
On May 9, 11:50 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > hotkittywrote: > > On May 7, 8:40 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > >>hotkittywrote: > >>> First and foremost thanks for all the help I've received on this > >>> board, especially Gunnar who keeps this place running! > >>> I've com

Re: Text formatting issues

2008-05-11 Thread hotkitty
On May 9, 11:50 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > hotkittywrote: > > On May 7, 8:40 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > >>hotkittywrote: > >>> First and foremost thanks for all the help I've received on this > >>> board, especially Gunnar who keeps this place running! > >>> I've com

Re: split slice question

2008-05-11 Thread Dr.Ruud
Richard Lee schreef: > I use this before (split slice ) but it's working bit funny now.. > it looks like it's splitting on '' instead of /|/ as I have specified > below... ?? Look for quotemeta in perlre. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: script for an mbox

2008-05-11 Thread Dr.Ruud
"Tony Heal" schreef: > I need to remove all messages older than X from a gigabyte size mbox. > Anyone got a script for this? You can use formail to split up the mbox, see `man formail`. Then check the date in the postmark line (always the first line, the one that starts with From). That date loo

Re: comparing two binary numbers

2008-05-11 Thread Dr.Ruud
"Johnson Lau" schreef: > I need to compare two binary numbers and need perl to return the > number of matching bits. > > For example: > > $aaa = "1000"; > $bbb = "00101100"; > > In this case, the number of matching bits is 6. perl -Mstrict -Mwarnings -le' my $b1 = "1000"; my $b2 =

Re: comparing two binary numbers

2008-05-11 Thread Li, Jialin
On 5/11/08, Johnson Lau <[EMAIL PROTECTED]> wrote: > > Dear all, > > I need to compare two binary numbers and need perl to return the > number of matching bits. > > For example: > > $aaa = "1000"; > $bbb = "00101100"; > > In this case, the number of matching bits is 6. > > I know I could split