Hi,
i have the following script:
#!/bin/perl -w
use strict;
$ENV{"PATH"} = ".;" . $ENV{"PATH"};
print "Revesing the history file...\n";
print reverse <> history.txt > history_rev.txt;
print "Reversing the XpressClients file\n";
print reverse <> XpressClients.txt > Xp_clients.txt;
print "Parsing the XpressClients file...\n";
require 'Clients.pl' Xp_clients.txt > clients_file.txt;
the files are located in the same dir as the script.
the problem is - when i run the script i get this error:
Bareword found where operator expected at ./Filesx_Check.pl line 24, near "<> history"
(Missing operator before history?)
i get this error with "history", "XpressClients" and "Xp_clients", i.e, every file i mention.
i tried adding the directoy to PATH but that didn't help. i even changed the files premissions to rwx, but again, to no avail.
i'm seriously frustrated.
ANY suggestion will be appreciated.
Thanks!