re: UNIX box: It has been my impression that if PERL runs on a box, *nix utilities are probably available.
I checked the Marquis of Queensbury rules on 1 liners.
Use of ";" in place of new-line is considered below the coding belt.
doesn't
if ( $thecellspace )
{
$self->{ TABLECELLSPACE } = $thecellspace;
}
change the calling object? so that (assuming $oMy can be used in the followiing manner):
$the_table1 = $oMy->tablestyle("75%",1);
$the_table2 = $oMy->tablestyle("65%");# has TABLECELLSPACE of $the_table1...
i do not grok "writing a data file"?
are there multiple files?
Each time you run YourProgram, is it creating the file from scratch?
or
is it incrementally adding lines?
and/or
is it only displaying the fields to the user in requested order - i.e., is the sorted order transitory or...
your problem is not a perl issue, it is a cron issue.
cron sets only a few environment variables. perl simply takes the current environment the script is running under and puts it into %ENV.
any command/script run under cron is responsible for setting the "correct" environment variables. even...
my vote is for PaulTEG. We assume this is a relational database? If so, this is relational database 101.
There must be a table in the database that contains employees and their department. So
select info .....
from mytable, other_table
where ...
and other_table.deptno=DepartmentOfInterest...
shell scripting can require much more time & cpu resources than awk or perl. e.g, shell:
grep my_file|sed 's/........
requires *nix to fork/exec 2 new processes to execute these utilities.
Doing comparable operations in awk or perl will use only the original process.
If there any looping...
of course, samples of valid_host/file1 would help
But, assuming the 2 files are in same format,
so that we are looking for unique lines in file1:
sort valid_host valid_host file1|uniq
what operating system are you using that allows,
as I understand your posting, multiple files of
the same name to co-exist in the same directory/folder?
or, is the some sort of a regex in the file name?
have you previously used javascript?
what do you mean " parse a webpage "?
where did the page come from?
do you have access to an httpd server to which can run
submit your own scripts?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.