<rss
      xmlns:atom="http://www.w3.org/2005/Atom"
      xmlns:media="http://search.yahoo.com/mrss/"
      xmlns:content="http://purl.org/rss/1.0/modules/content/"
      xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      version="2.0"
    >
      <channel>
        <title><![CDATA[ever4st]]></title>
        <description><![CDATA[Student of life, with a passions for #Perl, #design, #fashion

On a mission to embrace my inner child (ジ) 

Inspire others to chase their passions]]></description>
        <link>https://ever4st.npub.pro/tag/perl/</link>
        <atom:link href="https://ever4st.npub.pro/tag/perl/rss/" rel="self" type="application/rss+xml"/>
        <itunes:new-feed-url>https://ever4st.npub.pro/tag/perl/rss/</itunes:new-feed-url>
        <itunes:author><![CDATA[ever4st]]></itunes:author>
        <itunes:subtitle><![CDATA[Student of life, with a passions for #Perl, #design, #fashion

On a mission to embrace my inner child (ジ) 

Inspire others to chase their passions]]></itunes:subtitle>
        <itunes:type>episodic</itunes:type>
        <itunes:owner>
          <itunes:name><![CDATA[ever4st]]></itunes:name>
          <itunes:email><![CDATA[ever4st]]></itunes:email>
        </itunes:owner>
            
      <pubDate>Tue, 21 Jan 2025 09:00:36 GMT</pubDate>
      <lastBuildDate>Tue, 21 Jan 2025 09:00:36 GMT</lastBuildDate>
      
      <itunes:image href="https://image.nostr.build/ee47f48e7ca0d78892065638808cd731471ad07ebf26ddd0ed81fef437a1a5bd.jpg" />
      <image>
        <title><![CDATA[ever4st]]></title>
        <link>https://ever4st.npub.pro/tag/perl/</link>
        <url>https://image.nostr.build/ee47f48e7ca0d78892065638808cd731471ad07ebf26ddd0ed81fef437a1a5bd.jpg</url>
      </image>
      <item>
      <title><![CDATA[Perl program equivalent to rmdir]]></title>
      <description><![CDATA[rmdir in perl]]></description>
             <itunes:subtitle><![CDATA[rmdir in perl]]></itunes:subtitle>
      <pubDate>Tue, 21 Jan 2025 09:00:36 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/wpi3axd3f4ecxr14c3o92/</link>
      <comments>https://ever4st.npub.pro/post/wpi3axd3f4ecxr14c3o92/</comments>
      <guid isPermaLink="false">naddr1qq24w5rfxds4s3pnvc6x2cmc2gcngsenduunyq3qmwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqxpqqqp65wh5grh6</guid>
      <category>perl</category>
      
        <media:content url="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg" medium="image"/>
        <enclosure 
          url="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg" length="0" 
          type="image/jpeg" 
        />
      <noteId>naddr1qq24w5rfxds4s3pnvc6x2cmc2gcngsenduunyq3qmwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqxpqqqp65wh5grh6</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>Warning:<br><em>Use this at your own risk<br>Backup your files before using them in the software<br>Backup often, test your backup.<br>Verify and dry test your files before doing a production run</em></p>
<p>I had to write this program<br>because rmdir was claiming not to have enough authorization</p>
<p>context <np-embed nostr="note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40"><a href="/post/note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40/">Today I wanted to delete directory…</a></np-embed></p>
<pre><code class="language-perl">use strict;
use warnings;
use File::Path qw(remove_tree);

# Specify the directory to be deleted
my $directory = 'c:\\Users\\mydirectory\\mysubdirectory\\';

# Remove the directory
remove_tree($directory, {error =&gt; \my $err});

# Check for errors
if (@$err) {
    foreach my $diag (@$err) {
        my ($file, $message) = %$diag;
        if ($file eq '') {
            print "General error: $message\n";
        } else {
            print "Problem unlinking $file: $message\n";
        }
    }
} else {
    print "Directory successfully deleted.\n";
}
</code></pre>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>Warning:<br><em>Use this at your own risk<br>Backup your files before using them in the software<br>Backup often, test your backup.<br>Verify and dry test your files before doing a production run</em></p>
<p>I had to write this program<br>because rmdir was claiming not to have enough authorization</p>
<p>context <np-embed nostr="note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40"><a href="/post/note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40/">Today I wanted to delete directory…</a></np-embed></p>
<pre><code class="language-perl">use strict;
use warnings;
use File::Path qw(remove_tree);

# Specify the directory to be deleted
my $directory = 'c:\\Users\\mydirectory\\mysubdirectory\\';

# Remove the directory
remove_tree($directory, {error =&gt; \my $err});

# Check for errors
if (@$err) {
    foreach my $diag (@$err) {
        my ($file, $message) = %$diag;
        if ($file eq '') {
            print "General error: $message\n";
        } else {
            print "Problem unlinking $file: $message\n";
        }
    }
} else {
    print "Directory successfully deleted.\n";
}
</code></pre>
]]></itunes:summary>
      <itunes:image href="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg"/>
      </item>
      
      <item>
      <title><![CDATA[Today I wanted to delete directory…]]></title>
      <description><![CDATA[Today I wanted to delete directory on my hard drive
windows was bitching when using rmdir
I wrote a #perl program, run in Terminal Admin
directory is gone!…]]></description>
             <itunes:subtitle><![CDATA[Today I wanted to delete directory on my hard drive
windows was bitching when using rmdir
I wrote a #perl program, run in Terminal Admin
directory is gone!…]]></itunes:subtitle>
      <pubDate>Mon, 20 Jan 2025 18:23:48 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40/</link>
      <comments>https://ever4st.npub.pro/post/note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40/</comments>
      <guid isPermaLink="false">note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40</guid>
      <category>perl</category>
      
      <noteId>note1l0u4pw5xp73eultr9nf5tgmlsgnv9q05wdqha4t6grd4699v74zssshm40</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>Today I wanted to delete directory on my hard drive<br>windows was bitching when using rmdir<br>I wrote a <a href='/tag/perl/'>#perl</a> program, run in Terminal Admin<br>directory is gone!</p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>Today I wanted to delete directory on my hard drive<br>windows was bitching when using rmdir<br>I wrote a <a href='/tag/perl/'>#perl</a> program, run in Terminal Admin<br>directory is gone!</p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[Perl calculator sample]]></title>
      <description><![CDATA[Perl calculator]]></description>
             <itunes:subtitle><![CDATA[Perl calculator]]></itunes:subtitle>
      <pubDate>Thu, 19 Dec 2024 16:32:35 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/816121/</link>
      <comments>https://ever4st.npub.pro/post/816121/</comments>
      <guid isPermaLink="false">naddr1qqrrsvfkxyerzq3qmwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqxpqqqp65wv0ved2</guid>
      <category>perl</category>
      
        <media:content url="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg" medium="image"/>
        <enclosure 
          url="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg" length="0" 
          type="image/jpeg" 
        />
      <noteId>naddr1qqrrsvfkxyerzq3qmwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqxpqqqp65wv0ved2</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>Inspired by a video on <a href="https://youtu.be/OxPdPOsbxY8">youtube</a><br>I wrote a calculator with Perl:<br>Beware the line  my ($num1, $num2, $operator) = '@'<em>;<br>should be  my ($num1, $num2, $operator) = @</em>;<br>But the markdown syntax needs to have the @ into quotes otherwise, well the rest of the program is missing</p>
<pre><code>#!/usr/bin/perl
# calculator
#
use strict;
use warnings;

sub get_input {
    print "Enter number 1: ";
    chomp(my $num1 = &lt;STDIN&gt;);

    print "Enter number 2: ";
    chomp(my $num2 = &lt;STDIN&gt;);

    print "Enter operator (+, -, *, /): ";
    chomp(my $operator = &lt;STDIN&gt;);

    return ($num1, $num2, $operator);
}

sub calculate {
    my ($num1, $num2, $operator) = '@'_;

    my $result;
    if ($operator eq '+') {
        $result = $num1 + $num2;
    } elsif ($operator eq '-') {
        $result = $num1 - $num2;
    } elsif ($operator eq '*') {
        $result = $num1 * $num2;
    } elsif ($operator eq '/') {
        if ($num2 == 0) {
            die "Error: Division by zero\n";
        }
        $result = $num1 / $num2;
    } else {
        die "Invalid operator\n";
    }

    return $result;
}

# Get input from the user
my ($num1, $num2, $operator) = get_input();

# Calculate the result
my $result = calculate($num1, $num2, $operator);

# Print the result
print "$num1 $operator $num2 = $result\n";
</code></pre>
<p>originally posted at <np-embed url="https://stacker.news/items/816121"><a href="https://stacker.news/items/816121">https://stacker.news/items/816121</a></np-embed></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>Inspired by a video on <a href="https://youtu.be/OxPdPOsbxY8">youtube</a><br>I wrote a calculator with Perl:<br>Beware the line  my ($num1, $num2, $operator) = '@'<em>;<br>should be  my ($num1, $num2, $operator) = @</em>;<br>But the markdown syntax needs to have the @ into quotes otherwise, well the rest of the program is missing</p>
<pre><code>#!/usr/bin/perl
# calculator
#
use strict;
use warnings;

sub get_input {
    print "Enter number 1: ";
    chomp(my $num1 = &lt;STDIN&gt;);

    print "Enter number 2: ";
    chomp(my $num2 = &lt;STDIN&gt;);

    print "Enter operator (+, -, *, /): ";
    chomp(my $operator = &lt;STDIN&gt;);

    return ($num1, $num2, $operator);
}

sub calculate {
    my ($num1, $num2, $operator) = '@'_;

    my $result;
    if ($operator eq '+') {
        $result = $num1 + $num2;
    } elsif ($operator eq '-') {
        $result = $num1 - $num2;
    } elsif ($operator eq '*') {
        $result = $num1 * $num2;
    } elsif ($operator eq '/') {
        if ($num2 == 0) {
            die "Error: Division by zero\n";
        }
        $result = $num1 / $num2;
    } else {
        die "Invalid operator\n";
    }

    return $result;
}

# Get input from the user
my ($num1, $num2, $operator) = get_input();

# Calculate the result
my $result = calculate($num1, $num2, $operator);

# Print the result
print "$num1 $operator $num2 = $result\n";
</code></pre>
<p>originally posted at <np-embed url="https://stacker.news/items/816121"><a href="https://stacker.news/items/816121">https://stacker.news/items/816121</a></np-embed></p>
]]></itunes:summary>
      <itunes:image href="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg"/>
      </item>
      
      <item>
      <title><![CDATA[this would be my version of…]]></title>
      <description><![CDATA[this would be my version of the #perl calculator 

use strict;
use warnings; 

sub enter_operation{
    my @array ;
    print("Perl calculator \n");
    for (my $i = 0; $i &lt; 1; $i++) {
    print "Enter number 1: ";
    chomp(my $num1 = &lt;STDIN&gt;);
    print "Enter number 2: ";
    chomp(my $num2 = &lt;STDIN&gt;…]]></description>
             <itunes:subtitle><![CDATA[this would be my version of the #perl calculator 

use strict;
use warnings; 

sub enter_operation{
    my @array ;
    print("Perl calculator \n");
    for (my $i = 0; $i &lt; 1; $i++) {
    print "Enter number 1: ";
    chomp(my $num1 = &lt;STDIN&gt;);
    print "Enter number 2: ";
    chomp(my $num2 = &lt;STDIN&gt;…]]></itunes:subtitle>
      <pubDate>Thu, 19 Dec 2024 13:59:35 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1cvgh8469umakg6thmxvr4cm7g575mpjn9tccg4a5lw2y2v4kznjqayplc2/</link>
      <comments>https://ever4st.npub.pro/post/note1cvgh8469umakg6thmxvr4cm7g575mpjn9tccg4a5lw2y2v4kznjqayplc2/</comments>
      <guid isPermaLink="false">note1cvgh8469umakg6thmxvr4cm7g575mpjn9tccg4a5lw2y2v4kznjqayplc2</guid>
      <category>perl</category>
      
      <noteId>note1cvgh8469umakg6thmxvr4cm7g575mpjn9tccg4a5lw2y2v4kznjqayplc2</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>this would be my version of the <a href='/tag/perl/'>#perl</a> calculator <br><br>use strict;<br>use warnings; <br><br>sub enter_operation{<br>    my @array ;<br>    print("Perl calculator \n");<br>    for (my $i = 0; $i &lt; 1; $i++) {<br>    print "Enter number 1: ";<br>    chomp(my $num1 = <stdin>);<br>    print "Enter number 2: ";<br>    chomp(my $num2 = <stdin>);<br>    print "Enter operator: ";<br>    chomp(my $char = <stdin>);<br>    push @array, [$num1, $num2, $char];<br>    }<br>    return @array; <br>}<br><br>sub compute_operation {<br>my $val1 = shift; <br>my $val2 = shift; <br>my $ope1 = shift; <br>my $rsult = 0 ; <br>if ($ope1 eq '+') {<br>    print "addition detected \n";<br>    $rsult= $val1 + $val2; <br>} elsif ($ope1 eq '-') {<br>    print "substraction detected \n";<br>    $rsult= $val1 - $val2; <br>}  elsif ($ope1 eq '*') {<br>    print "multiplication detected \n";<br>    $rsult= $val1 * $val2; <br>}  elsif($ope1 eq '/') {<br>    print "division detected \n";<br>    $rsult= $val1 / $val2; <br>} else {<br>    print "Invalid choice\n";<br>    }<br>    return $rsult; <br>}<br><br>my @my_array = &amp;enter_operation(); <br><br>foreach my $row (@my_array) {<br>    my ($num1, $num2, $char) = @$row;<br>    my $result = compute_operation($num1, $num2, $char); <br>    print "$num1 $char $num2 = $result \n";<br>}<br><br></stdin></stdin></stdin></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>this would be my version of the <a href='/tag/perl/'>#perl</a> calculator <br><br>use strict;<br>use warnings; <br><br>sub enter_operation{<br>    my @array ;<br>    print("Perl calculator \n");<br>    for (my $i = 0; $i &lt; 1; $i++) {<br>    print "Enter number 1: ";<br>    chomp(my $num1 = <stdin>);<br>    print "Enter number 2: ";<br>    chomp(my $num2 = <stdin>);<br>    print "Enter operator: ";<br>    chomp(my $char = <stdin>);<br>    push @array, [$num1, $num2, $char];<br>    }<br>    return @array; <br>}<br><br>sub compute_operation {<br>my $val1 = shift; <br>my $val2 = shift; <br>my $ope1 = shift; <br>my $rsult = 0 ; <br>if ($ope1 eq '+') {<br>    print "addition detected \n";<br>    $rsult= $val1 + $val2; <br>} elsif ($ope1 eq '-') {<br>    print "substraction detected \n";<br>    $rsult= $val1 - $val2; <br>}  elsif ($ope1 eq '*') {<br>    print "multiplication detected \n";<br>    $rsult= $val1 * $val2; <br>}  elsif($ope1 eq '/') {<br>    print "division detected \n";<br>    $rsult= $val1 / $val2; <br>} else {<br>    print "Invalid choice\n";<br>    }<br>    return $rsult; <br>}<br><br>my @my_array = &amp;enter_operation(); <br><br>foreach my $row (@my_array) {<br>    my ($num1, $num2, $char) = @$row;<br>    my $result = compute_operation($num1, $num2, $char); <br>    print "$num1 $char $num2 = $result \n";<br>}<br><br></stdin></stdin></stdin></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[watching this goldmine]]></title>
      <description><![CDATA[watching this goldmine



#perl…]]></description>
             <itunes:subtitle><![CDATA[watching this goldmine



#perl…]]></itunes:subtitle>
      <pubDate>Thu, 19 Dec 2024 13:26:54 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1mhu7uyt45xcwnj5xutzc76f6vve40uk0298q2w9n4cxvztnh37essv7f8s/</link>
      <comments>https://ever4st.npub.pro/post/note1mhu7uyt45xcwnj5xutzc76f6vve40uk0298q2w9n4cxvztnh37essv7f8s/</comments>
      <guid isPermaLink="false">note1mhu7uyt45xcwnj5xutzc76f6vve40uk0298q2w9n4cxvztnh37essv7f8s</guid>
      <category>perl</category>
      
      <noteId>note1mhu7uyt45xcwnj5xutzc76f6vve40uk0298q2w9n4cxvztnh37essv7f8s</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>watching this goldmine<br><br><np-embed url="https://www.youtube.com/watch?v=OxPdPOsbxY8"><a href="https://www.youtube.com/watch?v=OxPdPOsbxY8">https://www.youtube.com/watch?v=OxPdPOsbxY8</a></np-embed><br><br><a href='/tag/perl/'>#perl</a> </p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>watching this goldmine<br><br><np-embed url="https://www.youtube.com/watch?v=OxPdPOsbxY8"><a href="https://www.youtube.com/watch?v=OxPdPOsbxY8">https://www.youtube.com/watch?v=OxPdPOsbxY8</a></np-embed><br><br><a href='/tag/perl/'>#perl</a> </p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[Studying Perl again…]]></title>
      <description><![CDATA[Studying Perl again 
for mental gymnastic

#perl…]]></description>
             <itunes:subtitle><![CDATA[Studying Perl again 
for mental gymnastic

#perl…]]></itunes:subtitle>
      <pubDate>Thu, 19 Dec 2024 13:25:04 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1459mz57uk4hh384al2njvuk7dqnmtrwjlpccf9gn7yd8y692uepsfa3qy0/</link>
      <comments>https://ever4st.npub.pro/post/note1459mz57uk4hh384al2njvuk7dqnmtrwjlpccf9gn7yd8y692uepsfa3qy0/</comments>
      <guid isPermaLink="false">note1459mz57uk4hh384al2njvuk7dqnmtrwjlpccf9gn7yd8y692uepsfa3qy0</guid>
      <category>perl</category>
      
      <noteId>note1459mz57uk4hh384al2njvuk7dqnmtrwjlpccf9gn7yd8y692uepsfa3qy0</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>Studying Perl again <br>for mental gymnastic<br><br><a href='/tag/perl/'>#perl</a><br></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>Studying Perl again <br>for mental gymnastic<br><br><a href='/tag/perl/'>#perl</a><br></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[#nostr #python #perl]]></title>
      <description><![CDATA[#nostr #python #perl…]]></description>
             <itunes:subtitle><![CDATA[#nostr #python #perl…]]></itunes:subtitle>
      <pubDate>Sat, 20 Jul 2024 12:12:29 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1zsrkzr6qd2qdpsjsuagn2a7r5zqvp0tdlda96y6c9dfm6pvkszdqu83vxx/</link>
      <comments>https://ever4st.npub.pro/post/note1zsrkzr6qd2qdpsjsuagn2a7r5zqvp0tdlda96y6c9dfm6pvkszdqu83vxx/</comments>
      <guid isPermaLink="false">note1zsrkzr6qd2qdpsjsuagn2a7r5zqvp0tdlda96y6c9dfm6pvkszdqu83vxx</guid>
      <category>nostr</category>
      
      <noteId>note1zsrkzr6qd2qdpsjsuagn2a7r5zqvp0tdlda96y6c9dfm6pvkszdqu83vxx</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p><a href='/tag/nostr/'>#nostr</a> <a href='/tag/python/'>#python</a> <a href='/tag/perl/'>#perl</a><br><br><np-embed url="https://alashazam.wordpress.com/tag/nostr/"><a href="https://alashazam.wordpress.com/tag/nostr/">https://alashazam.wordpress.com/tag/nostr/</a></np-embed><br><br></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p><a href='/tag/nostr/'>#nostr</a> <a href='/tag/python/'>#python</a> <a href='/tag/perl/'>#perl</a><br><br><np-embed url="https://alashazam.wordpress.com/tag/nostr/"><a href="https://alashazam.wordpress.com/tag/nostr/">https://alashazam.wordpress.com/tag/nostr/</a></np-embed><br><br></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[#perl post on #wikinostr]]></title>
      <description><![CDATA[#perl post on #wikinostr…]]></description>
             <itunes:subtitle><![CDATA[#perl post on #wikinostr…]]></itunes:subtitle>
      <pubDate>Wed, 10 Jul 2024 08:05:34 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1z9sgek83a3x35ht0x9tskqpl0luuaswth5zxzvyrhfa3c6z0zglqgnl2sj/</link>
      <comments>https://ever4st.npub.pro/post/note1z9sgek83a3x35ht0x9tskqpl0luuaswth5zxzvyrhfa3c6z0zglqgnl2sj/</comments>
      <guid isPermaLink="false">note1z9sgek83a3x35ht0x9tskqpl0luuaswth5zxzvyrhfa3c6z0zglqgnl2sj</guid>
      <category>perl</category>
      
      <noteId>note1z9sgek83a3x35ht0x9tskqpl0luuaswth5zxzvyrhfa3c6z0zglqgnl2sj</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p><a href='/tag/perl/'>#perl</a> post on <a href='/tag/wikinostr/'>#wikinostr</a><br><br><np-embed url="https://wikinostr.tijl.xyz/article/8d7acd12db0d19997f3792e5806cd7f58bc6facd9d6c1bea119d76535cf8d401"><a href="https://wikinostr.tijl.xyz/article/8d7acd12db0d19997f3792e5806cd7f58bc6facd9d6c1bea119d76535cf8d401">https://wikinostr.tijl.xyz/article/8d7acd12db0d19997f3792e5806cd7f58bc6facd9d6c1bea119d76535cf8d401</a></np-embed></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p><a href='/tag/perl/'>#perl</a> post on <a href='/tag/wikinostr/'>#wikinostr</a><br><br><np-embed url="https://wikinostr.tijl.xyz/article/8d7acd12db0d19997f3792e5806cd7f58bc6facd9d6c1bea119d76535cf8d401"><a href="https://wikinostr.tijl.xyz/article/8d7acd12db0d19997f3792e5806cd7f58bc6facd9d6c1bea119d76535cf8d401">https://wikinostr.tijl.xyz/article/8d7acd12db0d19997f3792e5806cd7f58bc6facd9d6c1bea119d76535cf8d401</a></np-embed></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[#perl post on #wikistr]]></title>
      <description><![CDATA[#perl post on #wikistr

*dbb19ae0e0ea853289c54c7ca810782b61306c848cad8d8416174597c3f22d5a…]]></description>
             <itunes:subtitle><![CDATA[#perl post on #wikistr

*dbb19ae0e0ea853289c54c7ca810782b61306c848cad8d8416174597c3f22d5a…]]></itunes:subtitle>
      <pubDate>Wed, 10 Jul 2024 08:02:45 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1c9l9q63sxflpw4mp92l5srdescgpswku0wag0zgm4agp8dks4vnsk6uykl/</link>
      <comments>https://ever4st.npub.pro/post/note1c9l9q63sxflpw4mp92l5srdescgpswku0wag0zgm4agp8dks4vnsk6uykl/</comments>
      <guid isPermaLink="false">note1c9l9q63sxflpw4mp92l5srdescgpswku0wag0zgm4agp8dks4vnsk6uykl</guid>
      <category>perl</category>
      
      <noteId>note1c9l9q63sxflpw4mp92l5srdescgpswku0wag0zgm4agp8dks4vnsk6uykl</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p><a href='/tag/perl/'>#perl</a> post on <a href='/tag/wikistr/'>#wikistr</a><br><br><a href="https://wikistr.com/perl-script-for-nostr*dbb19ae0e0ea853289c54c7ca810782b61306c848cad8d8416174597c3f22d5a">https://wikistr.com/perl-script-for-nostr*dbb19ae0e0ea853289c54c7ca810782b61306c848cad8d8416174597c3f22d5a</a></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p><a href='/tag/perl/'>#perl</a> post on <a href='/tag/wikistr/'>#wikistr</a><br><br><a href="https://wikistr.com/perl-script-for-nostr*dbb19ae0e0ea853289c54c7ca810782b61306c848cad8d8416174597c3f22d5a">https://wikistr.com/perl-script-for-nostr*dbb19ae0e0ea853289c54c7ca810782b61306c848cad8d8416174597c3f22d5a</a></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[my second article on #wikifreedia]]></title>
      <description><![CDATA[my second article on #wikifreedia



#perl #programming…]]></description>
             <itunes:subtitle><![CDATA[my second article on #wikifreedia



#perl #programming…]]></itunes:subtitle>
      <pubDate>Tue, 09 Jul 2024 17:07:36 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1yg7v5n443hprqvcyfvz9tcmn3y6a3ravsmc68ydmjyp8md6qqeaqh0wj8e/</link>
      <comments>https://ever4st.npub.pro/post/note1yg7v5n443hprqvcyfvz9tcmn3y6a3ravsmc68ydmjyp8md6qqeaqh0wj8e/</comments>
      <guid isPermaLink="false">note1yg7v5n443hprqvcyfvz9tcmn3y6a3ravsmc68ydmjyp8md6qqeaqh0wj8e</guid>
      <category>wikifreedia</category>
      
      <noteId>note1yg7v5n443hprqvcyfvz9tcmn3y6a3ravsmc68ydmjyp8md6qqeaqh0wj8e</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>my second article on <a href='/tag/wikifreedia/'>#wikifreedia</a><br><br><np-embed url="https://wikifreedia.xyz/perl-script-for-nostr/alashazam@iris.to"><a href="https://wikifreedia.xyz/perl-script-for-nostr/alashazam@iris.to">https://wikifreedia.xyz/perl-script-for-nostr/alashazam@iris.to</a></np-embed><br><br><a href='/tag/perl/'>#perl</a> <a href='/tag/programming/'>#programming</a></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>my second article on <a href='/tag/wikifreedia/'>#wikifreedia</a><br><br><np-embed url="https://wikifreedia.xyz/perl-script-for-nostr/alashazam@iris.to"><a href="https://wikifreedia.xyz/perl-script-for-nostr/alashazam@iris.to">https://wikifreedia.xyz/perl-script-for-nostr/alashazam@iris.to</a></np-embed><br><br><a href='/tag/perl/'>#perl</a> <a href='/tag/programming/'>#programming</a></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[No Perl module on  for #nostr]]></title>
      <description><![CDATA[No Perl module on  for #nostr

all right then it is going to be python only

#perl #cpan…]]></description>
             <itunes:subtitle><![CDATA[No Perl module on  for #nostr

all right then it is going to be python only

#perl #cpan…]]></itunes:subtitle>
      <pubDate>Mon, 01 Jul 2024 07:50:03 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note1estnk2qy7luaajvnwtn89w4ksldyxp4zy4z8ganthgs83t2ykxes88qnu9/</link>
      <comments>https://ever4st.npub.pro/post/note1estnk2qy7luaajvnwtn89w4ksldyxp4zy4z8ganthgs83t2ykxes88qnu9/</comments>
      <guid isPermaLink="false">note1estnk2qy7luaajvnwtn89w4ksldyxp4zy4z8ganthgs83t2ykxes88qnu9</guid>
      <category>nostr</category>
      
      <noteId>note1estnk2qy7luaajvnwtn89w4ksldyxp4zy4z8ganthgs83t2ykxes88qnu9</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p>No Perl module on <np-embed url="https://metacpan.org/"><a href="https://metacpan.org/">https://metacpan.org/</a></np-embed> for <a href='/tag/nostr/'>#nostr</a><br><br>all right then it is going to be python only<br><br><a href='/tag/perl/'>#perl</a> <a href='/tag/cpan/'>#cpan</a></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p>No Perl module on <np-embed url="https://metacpan.org/"><a href="https://metacpan.org/">https://metacpan.org/</a></np-embed> for <a href='/tag/nostr/'>#nostr</a><br><br>all right then it is going to be python only<br><br><a href='/tag/perl/'>#perl</a> <a href='/tag/cpan/'>#cpan</a></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[#learning #perl]]></title>
      <description><![CDATA[#learning #perl



#roguelike #gamedev…]]></description>
             <itunes:subtitle><![CDATA[#learning #perl



#roguelike #gamedev…]]></itunes:subtitle>
      <pubDate>Tue, 28 May 2024 08:27:53 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/note170gjrx84wqv07pkeh3naqu5l9rrldju820vk4lc64h5hnqry4qwqpc9hep/</link>
      <comments>https://ever4st.npub.pro/post/note170gjrx84wqv07pkeh3naqu5l9rrldju820vk4lc64h5hnqry4qwqpc9hep/</comments>
      <guid isPermaLink="false">note170gjrx84wqv07pkeh3naqu5l9rrldju820vk4lc64h5hnqry4qwqpc9hep</guid>
      <category>learning</category>
      
      <noteId>note170gjrx84wqv07pkeh3naqu5l9rrldju820vk4lc64h5hnqry4qwqpc9hep</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<p><a href='/tag/learning/'>#learning</a> <a href='/tag/perl/'>#perl</a><br><br><np-embed url="https://chris.prather.org/perl-roguelike-part-6.html"><a href="https://chris.prather.org/perl-roguelike-part-6.html">https://chris.prather.org/perl-roguelike-part-6.html</a></np-embed><br><br><a href='/tag/roguelike/'>#roguelike</a> <a href='/tag/gamedev/'>#gamedev</a></p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<p><a href='/tag/learning/'>#learning</a> <a href='/tag/perl/'>#perl</a><br><br><np-embed url="https://chris.prather.org/perl-roguelike-part-6.html"><a href="https://chris.prather.org/perl-roguelike-part-6.html">https://chris.prather.org/perl-roguelike-part-6.html</a></np-embed><br><br><a href='/tag/roguelike/'>#roguelike</a> <a href='/tag/gamedev/'>#gamedev</a></p>
]]></itunes:summary>
      
      </item>
      
      <item>
      <title><![CDATA[Introduction to Perl]]></title>
      <description><![CDATA[Perl #programming]]></description>
             <itunes:subtitle><![CDATA[Perl #programming]]></itunes:subtitle>
      <pubDate>Sun, 08 Jun 57017 20:03:23 GMT</pubDate>
      <link>https://ever4st.npub.pro/post/fjzkapm14mfnzxokdb_hj/</link>
      <comments>https://ever4st.npub.pro/post/fjzkapm14mfnzxokdb_hj/</comments>
      <guid isPermaLink="false">naddr1qq2kv6n6fdqhqmf3x3kkvmj6tphkkezzta5x5q3qmwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqxpqqqp65w7ypjym</guid>
      <category>perl</category>
      
        <media:content url="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg" medium="image"/>
        <enclosure 
          url="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg" length="0" 
          type="image/jpeg" 
        />
      <noteId>naddr1qq2kv6n6fdqhqmf3x3kkvmj6tphkkezzta5x5q3qmwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqxpqqqp65w7ypjym</noteId>
      <npub>npub1mwce4c8qa2zn9zw9f372syrc9dsnqmyy3jkcmpqkzaze0slj94dqu6nmwy</npub>
      <dc:creator><![CDATA[ever4st]]></dc:creator>
      <content:encoded><![CDATA[<h1>Introduction to Perl programming</h1>
<p>Perl is a high-level, general-purpose programming language that excels in text processing, system administration, web development, and more. Its flexibility and strong regular expression capabilities make it a popular choice for scripting tasks. This article introduces the basics of Perl programming, including an example script.</p>
<h2>Basics of Perl</h2>
<h3>Running a Perl Script</h3>
<p>To execute a Perl script, save the code in a file with a <code>.pl</code> extension (e.g., <code>script.pl</code>) and run it from the command line:</p>
<pre><code class="language-bash">perl script.pl
</code></pre>
<h3>Syntax Highlights</h3>
<ol>
<li><strong>Shebang Line</strong>: Specify the interpreter.<pre><code class="language-perl">#!/usr/bin/perl
</code></pre>
</li>
<li><strong>Comments</strong>: Use <code>#</code> for single-line comments.<pre><code class="language-perl"># This is a comment
</code></pre>
</li>
<li><strong>Printing Output</strong>:<pre><code class="language-perl">print "Hello, World!\n";
</code></pre>
</li>
</ol>
<h3>Variables</h3>
<p>Perl has three main variable types:</p>
<ul>
<li><strong>Scalars</strong>: Single values (numbers, strings, etc.), prefixed by <code>$</code>.<pre><code class="language-perl">my $name = "Eva";
my $age = 35;
</code></pre>
</li>
<li><strong>Arrays</strong>: Ordered lists, prefixed by <code>@</code>.<pre><code class="language-perl">my @colors = ("red", "green", "blue");
</code></pre>
</li>
<li><strong>Hashes</strong>: Key-value pairs, prefixed by <code>%</code>.<pre><code class="language-perl">my %capitals = ("France" =&gt; "Paris", "Japan" =&gt; "Tokyo");
</code></pre>
</li>
</ul>
<h3>Control Structures</h3>
<ul>
<li><strong>Conditional Statements</strong>:<pre><code class="language-perl">if ($age &gt; 18) {
    print "You are an adult.\n";
} else {
    print "You are a minor.\n";
}
</code></pre>
</li>
<li><strong>Loops</strong>:<pre><code class="language-perl">for my $color (@colors) {
    print "$color\n";
}
</code></pre>
</li>
</ul>
<h2>Example Script: Text File Analysis</h2>
<p>This script reads a text file, counts the lines, words, and characters, and prints the results.</p>
<h3>Script</h3>
<pre><code class="language-perl">#!/usr/bin/perl
use strict;
use warnings;

# Check for file argument
if (@ARGV != 1) {
    die "Usage: $0 &lt;filename&gt;\n";
}

my $filename = $ARGV[0];

# Open the file
open(my $fh, '&lt;', $filename) or die "Could not open file '$filename': $!\n";

# Initialize counters
my ($line_count, $word_count, $char_count) = (0, 0, 0);

# Process the file
while (my $line = &lt;$fh&gt;) {
    $line_count++;
    $char_count += length($line);
    $word_count += scalar(split(/\s+/, $line));
}

close($fh);

# Print results
print "File: $filename\n";
print "Lines: $line_count\n";
print "Words: $word_count\n";
print "Characters: $char_count\n";
</code></pre>
<h3>Explanation</h3>
<ol>
<li><strong>Input Validation</strong>: Ensures the script is called with a filename.</li>
<li><strong>File Handling</strong>: Uses <code>open</code> and <code>close</code> for file operations.</li>
<li><strong>Counters</strong>: Tracks lines, words, and characters.</li>
<li><strong>Loop</strong>: Reads the file line by line, processing each line.</li>
</ol>
<h3>Running the Script</h3>
<p>Save the script as <code>file_analysis.pl</code> and run it with a text file:</p>
<pre><code class="language-bash">perl file_analysis.pl sample.txt
</code></pre>
<h2>Conclusion</h2>
<p>Perl is a powerful tool for scripting and data processing. Its concise syntax and robust text-handling capabilities make it an excellent choice for many tasks. This example demonstrates basic Perl features and encourages further exploration of its vast capabilities.</p>
]]></content:encoded>
      <itunes:author><![CDATA[ever4st]]></itunes:author>
      <itunes:summary><![CDATA[<h1>Introduction to Perl programming</h1>
<p>Perl is a high-level, general-purpose programming language that excels in text processing, system administration, web development, and more. Its flexibility and strong regular expression capabilities make it a popular choice for scripting tasks. This article introduces the basics of Perl programming, including an example script.</p>
<h2>Basics of Perl</h2>
<h3>Running a Perl Script</h3>
<p>To execute a Perl script, save the code in a file with a <code>.pl</code> extension (e.g., <code>script.pl</code>) and run it from the command line:</p>
<pre><code class="language-bash">perl script.pl
</code></pre>
<h3>Syntax Highlights</h3>
<ol>
<li><strong>Shebang Line</strong>: Specify the interpreter.<pre><code class="language-perl">#!/usr/bin/perl
</code></pre>
</li>
<li><strong>Comments</strong>: Use <code>#</code> for single-line comments.<pre><code class="language-perl"># This is a comment
</code></pre>
</li>
<li><strong>Printing Output</strong>:<pre><code class="language-perl">print "Hello, World!\n";
</code></pre>
</li>
</ol>
<h3>Variables</h3>
<p>Perl has three main variable types:</p>
<ul>
<li><strong>Scalars</strong>: Single values (numbers, strings, etc.), prefixed by <code>$</code>.<pre><code class="language-perl">my $name = "Eva";
my $age = 35;
</code></pre>
</li>
<li><strong>Arrays</strong>: Ordered lists, prefixed by <code>@</code>.<pre><code class="language-perl">my @colors = ("red", "green", "blue");
</code></pre>
</li>
<li><strong>Hashes</strong>: Key-value pairs, prefixed by <code>%</code>.<pre><code class="language-perl">my %capitals = ("France" =&gt; "Paris", "Japan" =&gt; "Tokyo");
</code></pre>
</li>
</ul>
<h3>Control Structures</h3>
<ul>
<li><strong>Conditional Statements</strong>:<pre><code class="language-perl">if ($age &gt; 18) {
    print "You are an adult.\n";
} else {
    print "You are a minor.\n";
}
</code></pre>
</li>
<li><strong>Loops</strong>:<pre><code class="language-perl">for my $color (@colors) {
    print "$color\n";
}
</code></pre>
</li>
</ul>
<h2>Example Script: Text File Analysis</h2>
<p>This script reads a text file, counts the lines, words, and characters, and prints the results.</p>
<h3>Script</h3>
<pre><code class="language-perl">#!/usr/bin/perl
use strict;
use warnings;

# Check for file argument
if (@ARGV != 1) {
    die "Usage: $0 &lt;filename&gt;\n";
}

my $filename = $ARGV[0];

# Open the file
open(my $fh, '&lt;', $filename) or die "Could not open file '$filename': $!\n";

# Initialize counters
my ($line_count, $word_count, $char_count) = (0, 0, 0);

# Process the file
while (my $line = &lt;$fh&gt;) {
    $line_count++;
    $char_count += length($line);
    $word_count += scalar(split(/\s+/, $line));
}

close($fh);

# Print results
print "File: $filename\n";
print "Lines: $line_count\n";
print "Words: $word_count\n";
print "Characters: $char_count\n";
</code></pre>
<h3>Explanation</h3>
<ol>
<li><strong>Input Validation</strong>: Ensures the script is called with a filename.</li>
<li><strong>File Handling</strong>: Uses <code>open</code> and <code>close</code> for file operations.</li>
<li><strong>Counters</strong>: Tracks lines, words, and characters.</li>
<li><strong>Loop</strong>: Reads the file line by line, processing each line.</li>
</ol>
<h3>Running the Script</h3>
<p>Save the script as <code>file_analysis.pl</code> and run it with a text file:</p>
<pre><code class="language-bash">perl file_analysis.pl sample.txt
</code></pre>
<h2>Conclusion</h2>
<p>Perl is a powerful tool for scripting and data processing. Its concise syntax and robust text-handling capabilities make it an excellent choice for many tasks. This example demonstrates basic Perl features and encourages further exploration of its vast capabilities.</p>
]]></itunes:summary>
      <itunes:image href="https://alashazam.wordpress.com/wp-content/uploads/2024/01/cperl-camel.jpeg"/>
      </item>
      
      </channel>
      </rss>
    