[31894] in Perl-Users-Digest
Perl-Users Digest, Issue: 3157 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Oct 1 03:14:25 2010
Date: Fri, 1 Oct 2010 00:14:15 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 1 Oct 2010 Volume: 11 Number: 3157
Today's topics:
Re: why does this happen? <merrilljensen@q.com>
Re: why does this happen? <uri@StemSystems.com>
Re: why does this happen? <jurgenex@hotmail.com>
Re: why does this happen? <merrilljensen@q.com>
Re: why does this happen? <merrilljensen@q.com>
Re: why does this happen? <merrilljensen@q.com>
Re: why does this happen? <merrilljensen@q.com>
Re: why does this happen? <mike@rechtman.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 30 Sep 2010 21:43:54 -0600
From: Uno <merrilljensen@q.com>
Subject: Re: why does this happen?
Message-Id: <8gl3nsFd5cU1@mid.individual.net>
Mart van de Wege wrote:
> Follow-up to -9999.
Well I hope I haven't stepped on a landmine. Thanks all for replies.
There seems to be some smoke from other fires, so I wanted to begin with
getting a handle on the bone-headed stuff:
What I typically do when I begin to code for a utility like the one I
desire is that I start with some more or less standard template, make it
compile and perform--for perl these steps are less discrete, and see if
I agree with my output.
So far on ubuntu, I have only used gedit for writing source. When I've
got the template working, I iterate the number that postpends in the
filename. I couldn't say that any more clearly with a microphone.
So when I rename perl2.pl to perl3.pl, this is what I get:
$ ls -l perl*
-rwx------ 1 dan dan 405 2010-04-01 12:37 perl1.pl
-rw------- 1 dan dan 269 2010-04-01 12:30 perl1.pl~
-rwxr-xr-x 1 dan dan 580 2010-09-25 21:47 perl2.pl
-rw-r--r-- 1 dan dan 527 2010-09-25 19:20 perl2.pl~
-rw-r--r-- 1 dan dan 580 2010-09-30 21:40 perl3.pl
$
Is there maybe a better way to develop perl, fortran and C on Ubuntu
than gedit?
--
Uno
------------------------------
Date: Thu, 30 Sep 2010 23:53:59 -0400
From: "Uri Guttman" <uri@StemSystems.com>
Subject: Re: why does this happen?
Message-Id: <8739sqsh48.fsf@quad.sysarch.com>
>>>>> "U" == Uno <merrilljensen@q.com> writes:
U> Mart van de Wege wrote:
>> Follow-up to -9999.
U> Well I hope I haven't stepped on a landmine. Thanks all for
U> replies. There seems to be some smoke from other fires, so I wanted to
U> begin with getting a handle on the bone-headed stuff:
U> What I typically do when I begin to code for a utility like the one I
U> desire is that I start with some more or less standard template, make
U> it compile and perform--for perl these steps are less discrete, and
U> see if I agree with my output.
U> So far on ubuntu, I have only used gedit for writing source. When
U> I've got the template working, I iterate the number that postpends in
U> the filename. I couldn't say that any more clearly with a microphone.
nope. you have been as clear as mud so far.
HOW did you do the rename itself? you have yet to show that. the unix
mv command will not touch permissions.
U> So when I rename perl2.pl to perl3.pl, this is what I get:
U> $ ls -l perl*
U> -rwx------ 1 dan dan 405 2010-04-01 12:37 perl1.pl
U> -rw------- 1 dan dan 269 2010-04-01 12:30 perl1.pl~
U> -rwxr-xr-x 1 dan dan 580 2010-09-25 21:47 perl2.pl
U> -rw-r--r-- 1 dan dan 527 2010-09-25 19:20 perl2.pl~
U> -rw-r--r-- 1 dan dan 580 2010-09-30 21:40 perl3.pl
U>
i smell a rat. did you do a save as type of thing in you editor? that
creates a new file with new permissions and likely won't enable the x
bits. and what is so hard about doing a chmod +x on your program?
U> Is there maybe a better way to develop perl, fortran and C on Ubuntu
U> than gedit?
teco if you can get it? :)
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
------------------------------
Date: Thu, 30 Sep 2010 21:42:04 -0700
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: why does this happen?
Message-Id: <tepaa6tkjfsv7ajv0fa9gl7pqv73v42634@4ax.com>
Uno <merrilljensen@q.com> wrote:
>What I typically do when I begin to code for a utility like the one I
>desire is that I start with some more or less standard template, make it
>compile and perform--for perl these steps are less discrete, and see if
>I agree with my output.
Well, ok, I think I got this.
>So far on ubuntu, I have only used gedit for writing source. When I've
>got the template working, I iterate the number that postpends in the
>filename.
So, let me rephrase that: Are you saying, you are _SAVING_ the file
under a new name from your editor?
That would be very, very different from renaming an existing file, i.e.
from what you claimed you were doing before.
>So when I rename perl2.pl to perl3.pl, this is what I get:
jue
------------------------------
Date: Thu, 30 Sep 2010 22:51:41 -0600
From: Uno <merrilljensen@q.com>
Subject: Re: why does this happen?
Message-Id: <8gl7muFvtkU1@mid.individual.net>
Jürgen Exner wrote:
> Uno <merrilljensen@q.com> wrote:
>> What I typically do when I begin to code for a utility like the one I
>> desire is that I start with some more or less standard template, make it
>> compile and perform--for perl these steps are less discrete, and see if
>> I agree with my output.
>
> Well, ok, I think I got this.
>
>> So far on ubuntu, I have only used gedit for writing source. When I've
>> got the template working, I iterate the number that postpends in the
>> filename.
>
> So, let me rephrase that: Are you saying, you are _SAVING_ the file
> under a new name from your editor?
> That would be very, very different from renaming an existing file, i.e.
> from what you claimed you were doing before.
>
>> So when I rename perl2.pl to perl3.pl, this is what I get:
>
> jue
Yeah. I was really tripped by the permissions not being the same from
saving with gedit.
It's been a very good tool for me so far. I've upgraded on my windows
partition from notepad to potepad++, and I can't believe I didn't
upgrade earlier.
Ben Bacarisse from clc once recommended something called emacs.
What is that?
--
Uno
------------------------------
Date: Thu, 30 Sep 2010 23:42:26 -0600
From: Uno <merrilljensen@q.com>
Subject: Re: why does this happen?
Message-Id: <8glam3FemfU1@mid.individual.net>
Mike Lovell wrote:
[you can lower your security clearance to talk to me]
>> Is there maybe a better way to develop perl, fortran and C on Ubuntu
>> than gedit?
>
> Code::Blocks
> http://www.codeblocks.org/
I really would like to get this capability rolling. As soon as I do,
I'll have a perl program to post.
Until then, I've got this:
$ pwd
/home/dan/source/amd64
$ ls *
codeblocks_10.05-1_amd64.changes codeblocks-doc-en_10.05-1_all.deb
codeblocks_10.05-1_amd64.deb
codeblocks-headers_10.05-1_all.deb
codeblocks-common_10.05-1_all.deb libcodeblocks0_10.05-1_amd64.deb
codeblocks-contrib_10.05-1_amd64.deb libwxsmithlib0_10.05-1_amd64.deb
codeblocks-contrib-common_10.05-1_all.deb
libwxsmithlib0-dev_10.05-1_amd64.deb
codeblocks-dev_10.05-1_amd64.deb wxsmith-dev_10.05-1_amd64.deb
codeblocks-doc-de_10.05-1_all.deb wxsmith-headers_10.05-1_all.deb
$
I've got ideas here but no experience.
--
Uno
------------------------------
Date: Thu, 30 Sep 2010 23:44:28 -0600
From: Uno <merrilljensen@q.com>
Subject: Re: why does this happen?
Message-Id: <8glaprFemfU2@mid.individual.net>
Uri Guttman wrote:
>>>>>> "U" == Uno <merrilljensen@q.com> writes:
>
>
> U> Mart van de Wege wrote:
> >> Follow-up to -9999.
>
> U> Well I hope I haven't stepped on a landmine. Thanks all for
> U> replies. There seems to be some smoke from other fires, so I wanted to
> U> begin with getting a handle on the bone-headed stuff:
>
> U> What I typically do when I begin to code for a utility like the one I
> U> desire is that I start with some more or less standard template, make
> U> it compile and perform--for perl these steps are less discrete, and
> U> see if I agree with my output.
>
> U> So far on ubuntu, I have only used gedit for writing source. When
> U> I've got the template working, I iterate the number that postpends in
> U> the filename. I couldn't say that any more clearly with a microphone.
>
> nope. you have been as clear as mud so far.
>
> HOW did you do the rename itself? you have yet to show that. the unix
> mv command will not touch permissions.
>
> U> So when I rename perl2.pl to perl3.pl, this is what I get:
>
> U> $ ls -l perl*
> U> -rwx------ 1 dan dan 405 2010-04-01 12:37 perl1.pl
> U> -rw------- 1 dan dan 269 2010-04-01 12:30 perl1.pl~
> U> -rwxr-xr-x 1 dan dan 580 2010-09-25 21:47 perl2.pl
> U> -rw-r--r-- 1 dan dan 527 2010-09-25 19:20 perl2.pl~
> U> -rw-r--r-- 1 dan dan 580 2010-09-30 21:40 perl3.pl
> U>
>
> i smell a rat. did you do a save as type of thing in you editor? that
> creates a new file with new permissions and likely won't enable the x
> bits. and what is so hard about doing a chmod +x on your program?
>
> U> Is there maybe a better way to develop perl, fortran and C on Ubuntu
> U> than gedit?
>
> teco if you can get it? :)
>
> uri
>
the rat was that I used mv and confounded the "usual" order of things.
what is teco?
--
Uno
------------------------------
Date: Thu, 30 Sep 2010 23:49:58 -0600
From: Uno <merrilljensen@q.com>
Subject: Re: why does this happen?
Message-Id: <8glb47FgsiU1@mid.individual.net>
Jens Thoms Toerring wrote:
> In comp.lang.perl.misc Uno <merrilljensen@q.com> wrote:
>> How do I not have permission here, when all I did is increment from
>> perl1 to perl2. Does a file get stripped of its priveleges automatically.
>
>> $ ./perl1.pl
>> Placido P. Octopus
>> Polypacido P. Octopus
>
>> $ ./perl2.pl
>> bash: ./perl2.pl: Permission denied
>> $
>
> This is not at all related to Perl (as the leading "bash:"
> in the error messages indicates, it's something from the
> shell (bash) you're using). You don't have execute permis-
> sions for the new file 'perl2.pl', resulting from whatever
> you did but do not tell (there's no "increment" from "perl1"
> to "perl2"). Do
>
> chmod 755 perl2.pl
>
> or
>
> chmod +x perl2.pl
>
> and things will start to work again.
>
> Jens
Das hat mich enttaeuscht.
Jens
------------------------------
Date: Fri, 01 Oct 2010 08:06:42 +0200
From: Mike Rechtman <mike@rechtman.com>
Subject: Re: why does this happen?
Message-Id: <icagn7-iqt.ln1@Ubuntu.mike-r.com>
On 01/10/10 06:51, Uno wrote:
> Jürgen Exner wrote:
>> Uno <merrilljensen@q.com> wrote:
>>> What I typically do when I begin to code for a utility like the one I
>>> desire is that I start with some more or less standard template, make
>>> it compile and perform--for perl these steps are less discrete, and
>>> see if I agree with my output.
>>
>> Well, ok, I think I got this.
>>
>>> So far on ubuntu, I have only used gedit for writing source. When
>>> I've got the template working, I iterate the number that postpends in
>>> the filename.
>>
>> So, let me rephrase that: Are you saying, you are _SAVING_ the file
>> under a new name from your editor? That would be very, very different
>> from renaming an existing file, i.e.
>> from what you claimed you were doing before.
>>
>>> So when I rename perl2.pl to perl3.pl, this is what I get:
>>
>> jue
>
> Yeah. I was really tripped by the permissions not being the same from
> saving with gedit.
>
> It's been a very good tool for me so far. I've upgraded on my windows
> partition from notepad to potepad++, and I can't believe I didn't
> upgrade earlier.
>
> Ben Bacarisse from clc once recommended something called emacs.
>
> What is that?
emacs is more than just an editor -- it is a way of life...
long learning curve, not meant for occasional use.
(Personally -- I use TPU on VMS)
--
Mike R.
Home: http://alpha.mike-r.com/
QOTD: http://alpha.mike-r.com/php/qotd.php
No Micro$oft products were used in the URLs above, or in preparing this message.
Recommended reading: http://www.catb.org/~esr/faqs/smart-questions.html#before
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3157
***************************************