Re: My progress in Perl

2023-08-07 Thread Levi Elias Nystad-Johansen via beginners
Hi,

Learning Perl is a great book, but anyone looking for an alternative should 
check out Minimal Perl by Tim Maher. I've found this book to be a little 
clearer and with more practical examples.

I've used Perl on windows for years, as it is far more powerful and portable 
than Batch and Powershell. Of course I also use it on mac and linux, and I can 
use the same scripts on all platforms :)

Most of my coding has been in making small command line utilities.
Like a script for renaming multiple files at once - which I use a lot for 
renaming photos from my camera and downloaded movies.

And one that runs a command whenever a file changes in a directory - I use this 
all the time for automatically running tests when I make changes to a code base.

I also use perl every time I need to process or generate reports.

While other languages, like python, offer more employment opportunities, I 
don't see myself switching. Perl is simply better and more suited for the tasks 
I use it for.

Perl has stronger regexes than anything else, has custom delimiters to avoid 
leaning toothpicks and similar issues, and allows for quick building and 
manipulation of strings, lists, and hashes.

-L

--- Original Message ---
On Sunday, August 6th, 2023 at 5:23 PM, William Torrez Corea 
 wrote:

> I started testing some extensions of CPAN but I don't understand anything. I 
> only execute and then proceed with a book. The name of the book is Beginning 
> Perl of Curtis Ovid Poe.
>
> I started with a lot of passion but then lost interest, the monotony 
> conquered me. Actually I am learning references and Complex Data Structures 
> in Perl.
>
> I have a lot of doubts in my mind:
>
> What is my purpose with this language?
> In my country don't exist use of this language
> I am boring and tired
>
> I must be a success!
>
> PD: Add your anecdote with this language.
>
> --
>
> With kindest regards, William.
>
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄

Re: My progress in Perl

2023-08-07 Thread Olivier
Out off topic rant...

> Honestly, my advise is if you are beginning to learn programming using
> perl in 2023. Don't.
>
> Pick up python and go from there.

My problem with Python (beside my inability to think oriented object) is
the very bad choice to have idents to represent blocks hierarchy.

In my every day work, I often write scripts I will use only once, and I
reuse pieces I copy from other script.

As it is onetime use only, I don't care about the identation, I just cut
and paste from { to }. I am not sure Python would react nicely to a
nightmare of identation.

Olivier

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




RE: My progress in Perl

2023-08-07 Thread Claude Brown via beginners
Steve,

I agree.  Someone just starting out should go with Python.  It pains me to say 
it, but Perl isn’t a good skills investment.

My team and I program every day in Perl – we have 100’s of libraries and system 
integrations.  I love it and it is my first choice for backend work.Sadly, 
we 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


CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.
Honestly, my advise is if you are beginning to learn programming using perl in 
2023. Don't.
Pick up python and go from there.
If you already know some perl and want to advance, yes go right ahead.
2023, is perl dead? no. It's a tool and it's still a swiss army of programming 
language and lot can be done.
I would say writing concise and compact programming for regex related 
processing, it still is right up there with anything out there today.
But def if you are learning programming in 2023, you should start w/ python.
To be truly useful, you have to learn several language but python(or to lot of 
extend, javascript) should be the first language you should learn(until AI can 
take over the world).

Having said this, I still love my perl.


On Mon, Aug 7, 2023 at 12:31 PM Andy Bach 
mailto:afb...@gmail.com>> wrote:
Yeah, I learned Perl back in the V4 days; I was sort of new to linux admin 
though a programmer in school and after learning sed/awk/grep to handle 
digesting logs and munging data files I heard of Perl.  It was a bit like 
finding crack cocaine, all sorts of tasks became easy and I wrote scripts to 
handle everything.  Having a need was the motivation, not following the books, 
though I did have a copy of Programming Perl that had about 40 scotch tape tabs 
marking places for reference.  Other books, the Perl Monks site and finally a 
near-by Perl Mongers group really helped me find the Perl communtiy.

On Sun, Aug 6, 2023 at 12:24 PM William Torrez Corea 
mailto:willitc9...@gmail.com>> wrote:
I started testing some extensions of CPAN but I don't understand anything. I 
only execute and then proceed with a book. The name of the book is Beginning 
Perl of Curtis Ovid Poe.

I started with a lot of passion but then lost interest, the monotony conquered 
me. Actually I am learning references and Complex Data Structures in Perl.

I have a lot of doubts in my mind:

What is my purpose with this language?
In my country don't exist use of this language
I am boring and tired

I must be a success!

PD: Add your anecdote with this language.

--

With kindest regards, William.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄



--

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk


Re: My progress in Perl

2023-08-07 Thread Steve Park
Honestly, my advise is if you are beginning to learn programming using perl
in 2023. Don't.

Pick up python and go from there.

If you already know some perl and want to advance, yes go right ahead.

2023, is perl dead? no. It's a tool and it's still a swiss army of
programming language and lot can be done.
I would say writing concise and compact programming for regex related
processing, it still is right up there with anything out there today.

But def if you are learning programming in 2023, you should start w/
python.
To be truly useful, you have to learn several language but python(or to lot
of extend, javascript) should be the first language you should learn(until
AI can take over the world).

Having said this, I still love my perl.



On Mon, Aug 7, 2023 at 12:31 PM Andy Bach  wrote:

> Yeah, I learned Perl back in the V4 days; I was sort of new to linux
> admin though a programmer in school and after learning sed/awk/grep to
> handle digesting logs and munging data files I heard of Perl.  It was a bit
> like finding crack cocaine, all sorts of tasks became easy and I wrote
> scripts to handle everything.  Having a need was the motivation, not
> following the books, though I did have a copy of Programming Perl that had
> about 40 scotch tape tabs marking places for reference.  Other books, the
> Perl Monks site and finally a near-by Perl Mongers group really helped me
> find the Perl communtiy.
>
> On Sun, Aug 6, 2023 at 12:24 PM William Torrez Corea <
> willitc9...@gmail.com> wrote:
>
>> I started testing some extensions of CPAN but I don't understand
>> anything. I only execute and then proceed with a book. The name of the book
>> is Beginning Perl of Curtis Ovid Poe.
>>
>> I started with a lot of passion but then lost interest, the monotony
>> conquered me. Actually I am learning references and Complex Data Structures
>> in Perl.
>>
>> I have a lot of doubts in my mind:
>>
>> What is my purpose with this language?
>> In my country don't exist use of this language
>> I am boring and tired
>>
>> *I must be a success!*
>>
>> PD: Add your anecdote with this language.
>>
>> --
>>
>> With kindest regards, William.
>>
>> ⢀⣴⠾⠻⢶⣦⠀
>> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
>> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
>> ⠈⠳⣄
>>
>>
>>
>
> --
>
> a
>
> Andy Bach,
> afb...@gmail.com
> 608 658-1890 cell
> 608 261-5738 wk
>


Re: My progress in Perl

2023-08-07 Thread Andy Bach
Yeah, I learned Perl back in the V4 days; I was sort of new to linux
admin though a programmer in school and after learning sed/awk/grep to
handle digesting logs and munging data files I heard of Perl.  It was a bit
like finding crack cocaine, all sorts of tasks became easy and I wrote
scripts to handle everything.  Having a need was the motivation, not
following the books, though I did have a copy of Programming Perl that had
about 40 scotch tape tabs marking places for reference.  Other books, the
Perl Monks site and finally a near-by Perl Mongers group really helped me
find the Perl communtiy.

On Sun, Aug 6, 2023 at 12:24 PM William Torrez Corea 
wrote:

> I started testing some extensions of CPAN but I don't understand anything.
> I only execute and then proceed with a book. The name of the book is
> Beginning Perl of Curtis Ovid Poe.
>
> I started with a lot of passion but then lost interest, the monotony
> conquered me. Actually I am learning references and Complex Data Structures
> in Perl.
>
> I have a lot of doubts in my mind:
>
> What is my purpose with this language?
> In my country don't exist use of this language
> I am boring and tired
>
> *I must be a success!*
>
> PD: Add your anecdote with this language.
>
> --
>
> With kindest regards, William.
>
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄
>
>
>

-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk


Re: My progress in Perl

2023-08-07 Thread armando perez pena
In my case Perl was my first programming language.  What I did was.

1) Read "Learning Perl" book.
2) After 2nd chapter more or less start to apply it and continue reading.

What I learned was applicable for other languages like python because the 
concept are similar.

But for sure you need a project where you need to apply it.

Once I read one advice. If you have doubt which language learn for example Perl 
and Python learn both. There is nothing bad with that.

Br,
Armando

From: Mike 
Sent: Monday, August 7, 2023 12:56:35 PM
To: beginners@perl.org 
Subject: Re: My progress in Perl


"Try to learn by doing something that you need."

That is great advice.  Write a program to open your directories
given a key word.  I use that program dozens of times every day.


Mike


On 8/7/23 00:29, Olivier wrote:
> William,
>
>> I started testing some extensions of CPAN but I don't understand anything. I
>> only execute and then proceed with a book. The name of the book is
>> Beginning Perl of Curtis Ovid Poe.
>>
>> I started with a lot of passion but then lost interest, the monotony 
>> conquered
>> me. Actually I am learning references and Complex Data Structures in Perl.
> I never learned that in Perl and I have been using Perl for 25 years at
> least.
>
> I never learned Perl from a book either, I used it for some small
> tasks/projects and learned new bits when I needed them.
>
>> I have a lot of doubts in my mind:
>>
>> What is my purpose with this language?
> For me, Perl is an unvaluable tool for automatisation of system tasks,
> manage users, create accounts, etc. My last scripts are used to
> synchronize print quota between two very dissimliar systems.
>
>> In my country don't exist use of this language
>> I am boring and tired
> SpamAssassin is a large project in Perl, but even that is not using very
> complicated data structures. Perl was designed to manipulate reports,
> extract data and create new reports. It is not a general usage language.
>
> I am not sure it is the right way to try to learn Perl without any
> project. Try to learn by doing something that you need.
>
> Most of the CPAN extensions (modules), you don't need them, you will
> never need them unless you have a direct use for them. Also, depending
> on the operating system you are using, some of the Perl modules may be
> part of the packages distriubuted for your OS.
>
> Also, for me the real strength of Perl is the strong system of regular
> expressions, I have an extensive use for them in each of my scripts (a
> software produces some logs, I have to extract some significant lines
> from the logs, etc.)
>
> Best regards,
>
> Olivier



Re: My progress in Perl

2023-08-07 Thread Mike


"Try to learn by doing something that you need."

That is great advice.  Write a program to open your directories
given a key word.  I use that program dozens of times every day.


Mike


On 8/7/23 00:29, Olivier wrote:

William,


I started testing some extensions of CPAN but I don't understand anything. I
only execute and then proceed with a book. The name of the book is
Beginning Perl of Curtis Ovid Poe.

I started with a lot of passion but then lost interest, the monotony conquered
me. Actually I am learning references and Complex Data Structures in Perl.

I never learned that in Perl and I have been using Perl for 25 years at
least.

I never learned Perl from a book either, I used it for some small
tasks/projects and learned new bits when I needed them.


I have a lot of doubts in my mind:

What is my purpose with this language?

For me, Perl is an unvaluable tool for automatisation of system tasks,
manage users, create accounts, etc. My last scripts are used to
synchronize print quota between two very dissimliar systems.


In my country don't exist use of this language
I am boring and tired

SpamAssassin is a large project in Perl, but even that is not using very
complicated data structures. Perl was designed to manipulate reports,
extract data and create new reports. It is not a general usage language.

I am not sure it is the right way to try to learn Perl without any
project. Try to learn by doing something that you need.

Most of the CPAN extensions (modules), you don't need them, you will
never need them unless you have a direct use for them. Also, depending
on the operating system you are using, some of the Perl modules may be
part of the packages distriubuted for your OS.

Also, for me the real strength of Perl is the strong system of regular
expressions, I have an extensive use for them in each of my scripts (a
software produces some logs, I have to extract some significant lines
from the logs, etc.)

Best regards,

Olivier