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:
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
* 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
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
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.
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
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
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&
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
; 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
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
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
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
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>
>>>>> "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
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,
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
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>
;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>
>>>>> "Claude" == Claude <[EMAIL PROTECTED]> writes:
>>>>> "Paul" == Paul Johnson <[EMAIL PROTECTED]> writes:
Paul> Claude said:
>>> Hello,
>>>
>>> I tried to create a test suite file containing
>>>>> "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
>>
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>
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
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
24 matches
Mail list logo