RE: regex

2024-01-22 Thread Claude Brown via beginners
e" at the start of a string (by adding ^) - detect "Jorge" at the end of a string (by adding $) - detect that the string is exactly "Jorge" (both ^ and $) Replace "Jorge" with your pattern, and the result is the same. Cheers, Claude. -- To unsubscribe, e-mail:

RE: Using UNIX domain sockets

2024-01-15 Thread Claude Brown via beginners
The first difference I can see is that "echo" adds a newline, but your perl does not. Try adding the newline: my $cmd='{"command":["stop"]}' . "\n"; This is a wild guess! -Original Message- From: listas.correo via beginners Sent: Tuesday, January 16, 2024 6:26 AM To: beginners@perl.o

RE: Preference

2023-10-28 Thread Claude Brown via beginners
* 0.9% in, say, C++ or C * 0.09% in Java or C# The rest of the time I slack off. Cheers, Claude. From: William Torrez Corea Sent: Sunday, October 29, 2023 8:46 AM To: Perl Beginners Subject: Preference CAUTION: This email originated from outside of the organization. Do not click links or

RE: Using qr// with substitution and group-interpolation in the substitution part

2023-10-25 Thread Claude Brown via beginners
things" command on your system. -Original Message- From: Claude Brown via beginners Sent: Thursday, October 26, 2023 8:07 AM To: Levi Elias Nystad-Johansen ; Andrew Solomon Cc: Josef Wolf ; beginners@perl.org Subject: RE: Using qr// with substitution and group-interpolation

RE: Using qr// with substitution and group-interpolation in the substitution part

2023-10-25 Thread Claude Brown via beginners
has no meaning for a qr// - removed the "m" from the sub as it best left with the original qr// - added "$data = ..." to get back the value from the subroutine Cheers, Claude.

RE: Tool for develop in Perl

2023-10-22 Thread Claude Brown via beginners
I am 99% using “vi” and sometimes Notepad++.I do not like heavy-weight IDE’s – I find they get in the way. I have colleagues using Visual Studio and they say it is great. Yet, I’m more productive 😊 I reckon they spend too much time messing around with the tool trying to make it do what t

RE: My progress in Perl

2023-08-07 Thread Claude Brown via beginners
are trying to figure out our path to Python. We barely know Python, so it will be a difficult – but necessary – journey. Cheers, Claude. From: Steve Park Sent: Tuesday, August 8, 2023 11:49 AM To: Andy Bach Cc: William Torrez Corea ; beginners@perl.org Subject: Re: My progress in Perl

RE: configuring Net::SMTP

2023-07-08 Thread Claude Brown via beginners
fragment of our code that does (a) authentication and (b) checks each value. I hope it assists. Cheers, Claude. use strict; use Carp; use Net::SMTP; use constant SMTP_HOST => 'smtp.sendgrid.net'; use constant SMTP_PORT => 465; use constant SMTP_USER => 'the-username&

RE: Communities or support

2023-06-14 Thread Claude Brown via beginners
I’m in Australia, and it is much the same story. Perl is not mentioned anymore, and it is difficult to find resources. You only need to look at the various “popularity” reviews to see Perl is out of favour. In my company we use Perl for most everything. Plus a little PHP & Javascript for smal

RE: storage types for big file

2023-05-30 Thread Claude Brown via beginners
; I put "_" instead of a space) There is a problem here that I didn't consider. If your line-length INCREASES, then this whole idea is, sadly, rubbish :( -Original Message- From: Tom Reed Sent: Wednesday, May 31, 2023 11:31 AM To: Claude Brown Cc: beginners@per

RE: storage types for big file

2023-05-30 Thread Claude Brown via beginners
y of your input file. Oh, and I haven't thought about "wide" characters which may influence how some of this works. Cheers, Claude. open(my $fh, "+<", $theFileName) or die "open: $!"; my $startOfLine = tell($fh) or die "tell: $!; while (defined(my

RE: storage types for big file

2023-05-30 Thread Claude Brown via beginners
Do you have the option to "seek" to the correct place in the file to make your changes? For example, perhaps: - Your changes are few compared to writing out the whole file - Your changes do not change the size of the file (or you can pad line-end with spaces) It is an edge case, but just a tho

RE: GNU/Linux

2023-05-02 Thread Claude Brown via beginners
ibrary, and it has less datatypes. It isn’t object oriented. Cheers, Claude. From: William Torrez Corea Sent: Wednesday, May 3, 2023 2:53 PM To: beginners@perl.org Subject: GNU/Linux Can develop a program in PERL for GNU/Linux without using BASH? What is the difference between PERL an

Re: tail -f does not exit

2004-05-19 Thread Claude
ined $pos; Rob> print while ; Rob> $pos = tell LOG; Rob> close LOG; Rob> sleep 1; Rob> } Tx a lot, Rob! -- Claude -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: tail -f does not exit

2004-05-14 Thread Claude
>>>>> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes: [...] Rob> You need to close and reopen the file if you want to check for a Rob> rename. Something like the program below. [...] Tx, Rob, I'll give feedback soon here! -- Claude -- To

tail -f does not exit

2004-05-14 Thread Claude
k.txt Everything ok, except that I would like to find out from the Perl code above when junk.txt has been deleted, or renamed. Unfortunately, "tail -f" does not exit... Any idea how to do that? -- Claude -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Set $Log::TraceMessages::On at module file level

2004-04-26 Thread Claude
I'll try to re-phrase my question, as I didn't get any answer: How can I set to "local" a globally defined variable, in order to get file scope in a module file? -- Claude -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Set $Log::TraceMessages::On at module file level

2004-04-25 Thread Claude
x27;; } # this is what I'd like, but fail to do that in my module file local $Log::TraceMessages::On = $trace; Any idea how to do tha? -- Claude -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Perl parsing script

2004-04-23 Thread Claude
;Cannot open log $file, $!\n"; while ( $line = ) { # parse one line, write the result } Hope it helps. -- Claude -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Test::Harness weird failure

2004-03-24 Thread Claude
>>>>> "Claude" == Claude <[EMAIL PROTECTED]> writes: >>>>> "Paul" == Paul Johnson <[EMAIL PROTECTED]> writes: Paul> Claude said: >>> Hello, >>> >>> I tried to create a test suite file containing

Re: Test::Harness weird failure

2004-03-23 Thread Claude
>>>>> "Paul" == Paul Johnson <[EMAIL PROTECTED]> writes: Paul> Claude said: >> Hello, >> >> I tried to create a test suite file containing the following code: >> >> -- clip --- >> #! /usr/local/bin/perl >>

Test::Harness weird failure

2004-03-17 Thread Claude
cript could be run, alas--no output ever seen -- clip --- What am I doing wrong? -- Claude -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Converting UNIX script to run under MIIS

2001-12-05 Thread Claude Jones
s been mapped to run with MIIS. I've installed a sendmail client for windows which works. If someone is willing to take a look, the script is at the following: www.crosseyes.biz\form_processor.txt I've changed the ending to .txt to prevent any complications. Claude Jones WTVS, Leesbu

Hotline Module

2001-11-29 Thread Trefois Jean-Claude
Hi, I found a simple perl hotline bot, and when I try to launch it, it says that the system command stty is not found! I know it is a shell util under linux, but what is the equavalant system utility under win2k? Thanks for your answer -- Christophe Tréfois ([EMAIL PROTECTED]) Web-Development