Re: I am considering changing my footnote style.

2009-03-31 Thread Chas. Owens
Well, the votes seem to be in[1]. Numbered footnotes won in a landslide with 12 votes out of 15. 1. http://spreadsheets.google.com/ccc?key=pRaU6ZSlzvAW13MW_-FZjfQ -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: begin

Re: I am considering changing my footnote style.

2009-03-31 Thread rich . japh
I personally enjoy reading all your post but I think star is better than numberS -Original Message- From: "Chas. Owens" Date: Mon, 16 Mar 2009 00:38:28 To: Perl Beginners Subject: I am considering changing my footnote style. As many of you have probably noticed, I am addicted* to footn

Re: Printing directory sizes

2009-03-31 Thread Telemachus
On Tue Mar 31 2009 @ 11:08, Octavian Râşniţă wrote: > Do you know if du has a parameter that lets us see the size of the files > from chosen directories? > > I've seen that it shows the disk usage only. >From man du: -a, --all write counts for all files, not just directorie

Re: Printing directory sizes

2009-03-31 Thread Octavian Râşniţă
To: "Lauri Nikkinen" On 04/03/2009, Lauri Nikkinen wrote: And I would like to write to script which prints into STDOUT (=cmd screen) all the directories in this folder (C:\Perl\) and and their size. So the out put should look like this: Directory bin: size xxx megabytes Directory cpan: size

Re: Printing directory sizes

2009-03-31 Thread Dan Wallis
On 04/03/2009, Lauri Nikkinen wrote: > And I would like to write to script which prints into STDOUT (=cmd screen) > all the directories in this folder (C:\Perl\) and and their size. So the out > put should look like this: > > Directory bin: size xxx megabytes > Directory cpan: size xxx megabytes >

Re: How can I select an item from a listbox?

2009-03-31 Thread Chas. Owens
On Tue, Mar 31, 2009 at 13:16, Thomas H. George wrote: > On Tue, Mar 31, 2009 at 12:17:24PM -0400, Chas. Owens wrote: >> On Tue, Mar 31, 2009 at 11:27, Thomas H. George wrote: >> > I have tried a dozen different ways but can't retrieve an item from a >> > list box.  With a cursor > left clicked >

Re: How can I select an item from a listbox?

2009-03-31 Thread Thomas H. George
On Tue, Mar 31, 2009 at 12:17:24PM -0400, Chas. Owens wrote: > On Tue, Mar 31, 2009 at 11:27, Thomas H. George wrote: > > I have tried a dozen different ways but can't retrieve an item from a > > list box.  With a cursor left clicked > > on the item it is highlighted (= active?) but > > code such

Re: How can I select an item from a listbox?

2009-03-31 Thread Chas. Owens
On Tue, Mar 31, 2009 at 11:27, Thomas H. George wrote: > I have tried a dozen different ways but can't retrieve an item from a > list box.  With a cursor on the item it is highlighted (= active?) but > code such as > > $selected = $lbox -> get('active'); > print $selected; > > prints the last item

Re: Pattern matching question

2009-03-31 Thread John W. Krahn
Richard Hobson wrote: Hi, Hello, Please be patient with this beginner. I have a subrouting as follows, that prints out an ASCII representation of chess board sub display_board { foreach (0..7) { my $ref = @_[$_]; That should be: my $ref = $_[$_]; Or better: f

Re: Pattern matching question

2009-03-31 Thread Telemachus
On Tue Mar 31 2009 @ 3:32, Richard Hobson wrote: > It works, but is there a way of combining these lines: > > my $piece = $ref->[$_]; > $piece =~ /.*(..$)/; > > It feels like this could be done in one step. Is this correct? I'm > finding that I'm d

How can I select an item from a listbox?

2009-03-31 Thread Thomas H. George
I have tried a dozen different ways but can't retrieve an item from a list box. With a cursor on the item it is highlighted (= active?) but code such as $selected = $lbox -> get('active'); print $selected; prints the last item in the list. What am I doing wrong? -- To unsubscribe, e-mail: be

Pattern matching question

2009-03-31 Thread Richard Hobson
Hi, Please be patient with this beginner. I have a subrouting as follows, that prints out an ASCII representation of chess board sub display_board { foreach (0..7) { my $ref = @_[$_]; foreach (0..7) { my $piece = $ref->[$_];