<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hihn.org &#187; Perl</title>
	<atom:link href="http://hihn.org/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://hihn.org</link>
	<description></description>
	<lastBuildDate>Sun, 27 Nov 2011 18:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>audacious Plugin für XChat</title>
		<link>http://hihn.org/2009/02/audacious-plugin-fur-xchat/</link>
		<comments>http://hihn.org/2009/02/audacious-plugin-fur-xchat/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 14:09:54 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[audacious]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[xchat]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=367</guid>
		<description><![CDATA[Plugin für XChat um den aktuellen Titel in audacious anzuzeigen: Download Das Ausgabeformat entspricht dem Format der audacious Playlist. Aufruf erfolg aus XChat raus mit /audacious]]></description>
			<content:encoded><![CDATA[<p>Plugin für XChat um den aktuellen Titel in audacious anzuzeigen:</p>
<p><a href="https://hihn.org/wp-content/uploads/2009/02/audacious_.pl"  title="Download"></p>
<h1>Download</h1>
<p></a></p>
<p>Das Ausgabeformat entspricht dem Format der audacious Playlist.</p>
<p>Aufruf erfolg aus XChat raus mit </p>
<pre>
/audacious
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/02/audacious-plugin-fur-xchat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exaile Plugin für XChat</title>
		<link>http://hihn.org/2009/02/exaile-plugin-fur-xchat/</link>
		<comments>http://hihn.org/2009/02/exaile-plugin-fur-xchat/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 13:52:27 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[exaile]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[xchat]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=321</guid>
		<description><![CDATA[Plugin für XChat um den aktuellen Titel (mit Interpret und Album) aus Exaile anzuzeigen: Download Die Ausgabe sieht so aus: * vesperlynd is listening to 'Bob Dylan - 4Th Time Around' from 'Blonde On Blonde' Aufruf erfolg aus XChat raus mit /exaile]]></description>
			<content:encoded><![CDATA[<p>Plugin für XChat um den aktuellen Titel (mit Interpret und Album) aus Exaile anzuzeigen:</p>
<p><a href="http://hihn.org/wp-content/uploads/2009/07/exaile_.pl"  title="Download"></p>
<h1>Download</h1>
<p></a></p>
<p>Die Ausgabe sieht so aus:</p>
<pre>
* vesperlynd is listening to 'Bob Dylan - 4Th Time Around' from 'Blonde On Blonde'
</pre>
<p>Aufruf erfolg aus XChat raus mit </p>
<pre>
/exaile
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/02/exaile-plugin-fur-xchat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eigene foreach-Variable in perl</title>
		<link>http://hihn.org/2008/06/eigene-foreach-variable-in-perl/</link>
		<comments>http://hihn.org/2008/06/eigene-foreach-variable-in-perl/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 20:58:57 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=99</guid>
		<description><![CDATA[Falls man in einer foreach-Schleife mit einer anderen foreach-Schleife arbeiten will dann kann man nicht mit $_ arbeiten wenn man die Variable der äusseren foreach-Schleife in der inneren benutzen möchte. Deshalb kann man sich eigene Variablen deklarieren: #!/usr/bin/perl my $var; my $var2; my @liste = qw( asdf jkl 1 2 3 4.56 ); my @liste2 [...]]]></description>
			<content:encoded><![CDATA[<p>Falls man in einer foreach-Schleife mit einer anderen foreach-Schleife arbeiten will dann kann man nicht mit <strong>$_</strong> arbeiten wenn man die Variable der äusseren foreach-Schleife in der inneren benutzen möchte. Deshalb kann man sich eigene Variablen deklarieren:</p>
<pre>
#!/usr/bin/perl
my $var;
my $var2;
my @liste = qw( asdf jkl 1 2 3 4.56 );
my @liste2 = qw( a b c d e f g );
foreach $var ( @liste ) {
	foreach $var2 ( @liste2 ) {
		print $var."\n";
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/06/eigene-foreach-variable-in-perl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kleinschreibung per  perl-script</title>
		<link>http://hihn.org/2008/02/kleinschreibung-per-perl-script/</link>
		<comments>http://hihn.org/2008/02/kleinschreibung-per-perl-script/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 20:49:22 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=44</guid>
		<description><![CDATA[Hier ein perl-script[1], das alle Dateien in einem Ordner (inklusive Unterordner) in Kleinbuchstaben umwandelt: #!/usr/bin/perl -w use strict; # Open 'find' process to list files recursively with paths open(FIND, "find &#124;"); while() { chomp; next if $_ eq $0; # Don't rename ourself rename($_, lc($_)); } close(FIND); Einfach mit chmod u+x ausführbar machen und mit [...]]]></description>
			<content:encoded><![CDATA[<p>Hier ein perl-script[1], das alle Dateien in einem Ordner (inklusive Unterordner) in Kleinbuchstaben umwandelt:</p>
<pre>
#!/usr/bin/perl -w
use strict;

# Open 'find' process to list files recursively with paths
open(FIND, "find |");
while(<FIND>) {
        chomp;
        next if $_ eq $0;        # Don't rename ourself
        rename($_, lc($_));
        }
close(FIND);
</pre>
<p>Einfach  mit <strong>chmod u+x</strong> ausführbar machen und mit <strong>./foo.pl</strong> starten.</p>
<p>Es lief auf meinem Debian-Rechner problemlos, allerdings konnte ich es nicht auf meinem OpenBSD-Server starten. Die Ursache war find &#8211; im Gegensatz zu Linux muss man unter OpenBSD noch ein Verzeichnis angeben, zB &#8220;.&#8221; für das aktuelle.<br />
So lief es auf OpenBSD:</p>
<pre>
#!/usr/bin/perl -w
use strict;

# Open 'find' process to list files recursively with paths
open(FIND, "find . |");
while(<FIND>) {
        chomp;
        next if $_ eq $0;        # Don't rename ourself
        rename($_, lc($_));
        }
close(FIND);
</pre>
<p>[1] <a href="http://webxadmin.free.fr/article/shell-rename-all-files-in-subdirectories-to-lowe-135.php" target="_blank">http://webxadmin.free.fr/article/shell-rename-all-files-in-subdirectories-to-lowe-135.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/02/kleinschreibung-per-perl-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

