<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Perl program or script' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Perl program or script' posted on the 'Perl' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 23:02:47 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 23:02:47 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Perl program or script</title>
      <link>http://www.programmersheaven.com/mb/perl/417842/417842/perl-program-or-script/</link>
      <description>OK, we were assigned to this assignment: Physicists tell us that the lowest possibel temperature is absolute zero.  Absolute zero is-459.69&lt;br /&gt;
degrees Fahrenheit.  a) Accept inputs from the user: a beginning temperature, an ending temperature and an increment value (all Fahrenheit) b)Check for bad input: a temperature less than zero and an ending message to STDERR if either condition is detected. c)Print a header showing "Fahrenheit  Celcius". Print all the values from the beginning to the ending temperatures. Use a loop mechanism. The conversion formula is: C =(F - 32) / 1.8&lt;br /&gt;
&lt;br /&gt;
#!/usr/local/bin/perl&lt;br /&gt;
printf "Please enter temperature(in Fahrenheit) \n";&lt;br /&gt;
printf "Enter the beginning temperature \n";&lt;br /&gt;
chomp($beg=);&lt;br /&gt;
printf "Enter the ending temperature \n";&lt;br /&gt;
chomp ($end=);&lt;br /&gt;
printf "Enter the increment value \n";&lt;br /&gt;
chomp($inc=);&lt;br /&gt;
&lt;br /&gt;
if ($end &amp;lt; $beg)&lt;br /&gt;
{&lt;br /&gt;
  printf STDERR "Beginning temperature can not be larger than ending temperature \n";&lt;br /&gt;
}&lt;br /&gt;
if ($beg &amp;lt; -456.69 ||$end &amp;lt; -456.69)&lt;br /&gt;
{&lt;br /&gt;
 printf STDERR "Temperature can not be below absolute zero \n";&lt;br /&gt;
}&lt;br /&gt;
printf "Fahrenheit     Celcius" \n";&lt;br /&gt;
&lt;br /&gt;
now how do I incorporate the loop for the beginning to ending temperatures to print the values is where I am stuck at&lt;br /&gt;
printf "$beg \n";&lt;br /&gt;
printf "$end \n";&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/417842/417842/perl-program-or-script/</guid>
      <pubDate>Tue, 13 Jul 2010 11:17:36 -0700</pubDate>
      <category>Perl</category>
    </item>
  </channel>
</rss>
