I did a view source on this page and it shows the script correctly so I am going to try to repost it for him with code tags. <CODE>
I am trying to run the programme but am gettiing thre following error, so it is a request to monks to pls help me out!!!!syntax error at checkdataperl.p line 249, near "for"
syntax error at checkdataperl.p line 250, near "++)
"
syntax error at checkdataperl.p line 286, near "}"
Execution of checkdataperl.p aborted due to compilation errors.
#!/usr/local/bin/perl
print("\n \nWelcome !! Please input the response very carefully in this
programme whenever asked for \n Now please ensure that before running the
programme you have run the vp29apr programme for the corresponding hour and
also the 1d files for the j or t hour as applicable are has also been run
upon \n Now please enter the hour for which you want to check the data
quality (a,b,..x) \n?" );
$hour=<STDIN>;chop($hour);
print("you entered ", $hour ,"\n");
$comparison=3;@arrone=();@arrtwo=();
@array=("o","p","q","r","s","u","v","w","x","a","b");
if ($hour eq "j")
{
$comparison=$hour;
}
elsif($hour eq "t")
{
$comparison=$hour;
}
else
{
for($n=0;$n<=10;$n++)
{
if($array
$n eq $hour)
{
$comparison="t";
}
}
}
if($comparison ne "t")
{
if($comparison ne $hour)
{
$comparison = "j";
}
%0
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.