<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Vidul Nikolaev Petrov: Perl script opening (vim variant)</title>
    <link>http://www.vidul.com/articles/2008/02/04/perl-script-opening-vim-variant</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Perl script opening (vim variant)</title>
      <description>&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;#!/bin/bash

file=$1

if [ -e $file ]
then
        vim $file
else
        touch $file
        echo '#!/usr/bin/perl' &amp;gt; $file
        echo '' &amp;gt;&amp;gt; $file
        echo 'use strict;' &amp;gt;&amp;gt; $file
        echo 'use warnings;' &amp;gt;&amp;gt; $file
        echo 'use diagnostics;' &amp;gt;&amp;gt; $file
        echo '' &amp;gt;&amp;gt; $file
        chmod +x $file
        vim $file
fi&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <pubDate>Mon, 04 Feb 2008 14:57:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:288028e0-f9e9-4bf1-837c-639d92733d9b</guid>
      <author>root</author>
      <link>http://www.vidul.com/articles/2008/02/04/perl-script-opening-vim-variant</link>
      <category>Perl</category>
      <category>scripts</category>
      <category>UNIX</category>
    </item>
  </channel>
</rss>
