On Friday 06 June 2003 13:22, Rob Dixon wrote:
> Katy Brownfield wrote:
> > On Fri, 6 Jun 2003 18:16:26 +0100, Rob Dixon
> > <[EMAIL PROTECTED]>
> >
> > wrote:
> > > John W. Krahn wrote:
> > > > Mark Anderson wrote:
> > > > > B) You should NEVER use map in a void context. map works
> > > > > very
Rob Richardson <[EMAIL PROTECTED]> wrote:
:
: Here is the entire program:
:
: #!/usr/bin/perl
:
: use warnings;
: use strict;
: use CGI qw/:standard center *big delete_all/;
All the above functions from CGI.pm are imported
to 'main'. They are available as, for example,
'main::br' which can
Harry Putnam wrote:
>
> James Edward Gray II <[EMAIL PROTECTED]> writes:
>
> > This, on the other hand is a search/replace and probably works exactly
> > as you expect. The lines are preforming two different operations,
> > thus the different results.
>
> My point here is that in both cases , r
On Saturday, June 7, 2003, at 10:28 PM, Harry Putnam wrote:
James Edward Gray II <[EMAIL PROTECTED]> writes:
This, on the other hand is a search/replace and probably works exactly
as you expect. The lines are preforming two different operations,
thus the different results.
My point here is that
Harry Putnam wrote:
>
> Consider this code:
> ^
> #!/usr/local/bin/perl -w
> $num = 234;
> $line1 = "$num some text here";
> $line2 = "$num "; ## note the space after.
>
> @array = ("$line1","$line2");
You don't need quotes there, the scalars are already strings.
my
James Edward Gray II <[EMAIL PROTECTED]> writes:
> This, on the other hand is a search/replace and probably works exactly
> as you expect. The lines are preforming two different operations,
> thus the different results.
My point here is that in both cases , regardless of them being
different act
On Saturday, June 7, 2003, at 07:36 PM, Harry Putnam wrote:
Consider this code:
^
#!/usr/local/bin/perl -w
$num = 234;
$line1 = "$num some text here";
$line2 = "$num "; ## note the space after.
@array = ("$line1","$line2");
for (@array){
$trimmed_line = (split(/^
Rob,
> Your response dovetails nicely with my next question. The module I'm
> working in begins as follows:
>
> use warnings;
> use strict;
> use CGI qw/:standard center strong *big delete_all/;
Because the code you have included does not specifically say so I have to
guess that:
package NotShow
Dave,
Your response dovetails nicely with my next question. The module I'm
working in begins as follows:
use warnings;
use strict;
use CGI qw/:standard center strong *big delete_all/;
After putting parentheses after my calls to "br", the program compiled
and started running. It barfed, though,
Consider this code:
^
#!/usr/local/bin/perl -w
$num = 234;
$line1 = "$num some text here";
$line2 = "$num "; ## note the space after.
@array = ("$line1","$line2");
for (@array){
$trimmed_line = (split(/^$num /,$_))[1];
# ($trimmed_line = $_) =~ s/^$num //;
Greetings again!
I could of course be wrong...
I just found that I had "use warnings" and "use strict" commented out
in the module that compiled!
Excuse me for a while while I track down a hundred or so violations
that uncommenting them uncovered.
RobR
--- Rob Richardson <[EMAIL PROTECTED]> wr
Kristofer and everybody else,
"br" is successfully used without parentheses in the first snippet I
posted. I don't believe that parentheses are required for subroutine
calls that don't have arguments, although I suppose I should use them
since I'm mainly a C++ programmer and so I should be as con
"Rob Dixon" <[EMAIL PROTECTED]> writes:
Thanks for the good description of the reasons for `my %types'
> Yes. My apologies - I'm travelling at the moment and I have no Unix
> system with me to test on. Change that line to use 'lstat' instead:
>
> my $type = (lstat $file)[2] & S_IFMT;
Yeah, now
"R. Joseph Newton" <[EMAIL PROTECTED]> writes:
> If you can tell us a little more about the context and sense in which you
> are seeking file type information, we may be able to help you find the
> distinctions appropriate to that context.
First... point taken about the bit-anding. But as you sa
On Friday, June 6, 2003, at 07:05 PM, R. Joseph Newton wrote:
The point here is that the essential purpose of the key is that of a
pointer, rather thanas data in itself.
There are applications of a Perl hash where one does not even need to
use the value, finding all the unique words in a documen
Harry Putnam wrote:
> Probably a no-brainer, but I wondered what is the canonical way or
> possibly a module that does this chore:
>
> Identify files by type similar to `-type' flag to unix `find' command.
> I first thought of the stat function, but I see I'm confused about
> what that does. None
Harry Putnam wrote:
> "Rob Dixon" <[EMAIL PROTECTED]> writes:
> >
> > This code will build a map of 'stat' type values to the seven type
> > operators that you list. Not all of them may be active on your system.
> > You can obviously modify the code to return the value you want.
> > You need to imp
On Fri, 2003-06-06 at 23:44, Michael Tokarev wrote:
> Paul Tremblay wrote:
> > If this mail makes it through, my configuration works!
>
> ...which does not imply your configuration is correct, however... ;)
>
> /mjt
>
>
>
Good point!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
"Rob Dixon" <[EMAIL PROTECTED]> writes:
>
> This code will build a map of 'stat' type values to the seven type
> operators that you list. Not all of them may be active on your system.
> You can obviously modify the code to return the value you want.
> You need to import the symbolic mode values usi
- Original Message -
From: "andrea serione" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 4:56 AM
Subject: hi, this is just a test
> hi everybody,
> I'm new to the list. I'm testing now.
> have fun!
>
Hi - Welcome! - Aloha => Beau;
--
To unsubscribe, e-ma
hi everybody,
I'm new to the list. I'm testing now.
have fun!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Harry Putnam wrote:
> "Rob Dixon" <[EMAIL PROTECTED]> writes:
>
> > So you can use:
> >
> > if (-f $file) {
> > :
> > # process file
> > }
> > elsif (-d $file) {
> > :
> > # process directory
> > }
>
> Well, yes of course I can run each filename thru all those tests, but
> t
"Rob Dixon" <[EMAIL PROTECTED]> writes:
> So you can use:
>
> if (-f $file) {
> :
> # process file
> }
> elsif (-d $file) {
> :
> # process directory
> }
Well, yes of course I can run each filename thru all those tests, but
that seems kind of like a lot of huffing and puff
On Fri, Jun 06, 2003 at 10:33:21PM -0700 R. Joseph Newton wrote:
> Francis Henry wrote:
> > The following is a note from a colleague of which I am skeptical:
> >
> > "fyi
> > .pl used to be used for both executables and libraries.
> > A library is simply perl code located in a differe
Harry Putnam wrote:
> Probably a no-brainer, but I wondered what is the canonical way or
> possibly a module that does this chore:
>
> Identify files by type similar to `-type' flag to unix `find' command.
> I first thought of the stat function, but I see I'm confused about
> what that does. None
Robert Freimuth wrote:
> Hello everyone,
>
> I was reading about sort in the camel (3rd ed., p. 793) and I found that
> sorting subroutines must be placed in the same package as they are called
> from since $a and $b are package globals. Therefore, sorting functions
> cannot be "modulized" without
Probably a no-brainer, but I wondered what is the canonical way or
possibly a module that does this chore:
Identify files by type similar to `-type' flag to unix `find' command.
I first thought of the stat function, but I see I'm confused about
what that does. None of the array elements are about
R. Joseph Newton wrote:
> Rob Dixon wrote:
>
> > James Edward Gray II wrote:
> > > On Friday, June 6, 2003, at 03:32 AM, R. Joseph Newton wrote:
> > >
> > > > The player's name IS the number. No other numbering system is
> > > > needed. The players name is NEVER stored in the hash, AFAIK. The
>
R. Joseph Newton wrote:
> Rob Dixon wrote:
>
> > James Edward Gray II wrote:
> > > On Friday, June 6, 2003, at 03:32 AM, R. Joseph Newton wrote:
> > >
> > > > The player's name IS the number. No other numbering system is
> > > > needed. The players name is NEVER stored in the hash, AFAIK. The
>
R. Joseph Newton wrote:
> Rob Dixon wrote:
>
> > It's twenty or thirty years since we had to write programs carefully
> > so that they would fit in 4KB of RAM and complete before the end of
> > the day.
> >
>
> OGawd Rob,
>
> Don't tell me you were around for that! I do remember my first computer
Hello everyone,
I was reading about sort in the camel (3rd ed., p. 793) and I found that
sorting subroutines must be placed in the same package as they are called
from since $a and $b are package globals. Therefore, sorting functions
cannot be "modulized" without help. The camel suggests two wor
Rather i should say:
It died in the below qx with this error:
Illegal seek at ././job.pl line 316
-Sharad
-Original Message-
From: Gupta, Sharad
Sent: Friday, June 06, 2003 11:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Illegal seek
While running this:
my $new = "/n
32 matches
Mail list logo