Does the write statement call the format statement each
time it writes when used in a while loop or does it
only call it once and hold it in memory? What I am
trying to do is change the page length each time the
write statement writes to a file, but it does not
appear to be working quite
I am using format to print to multiple files using a
while loop and the body writes out to each file fine,
however the header will not write to the top of each
file. The first file is fine then it will skip a few
and write to another, but not at the top, somewhere in
the middle and so on
I would appreciate it if someone could provide an
example of using the format() within a script.
Thanks for your help
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
When I run the following script, I get the following
error. Being new to perl, I am having trouble
identifying where the error is at.
Thanks for your help.
Error:
Use of uninitialized value at user_access1.pl line 43,
F_ACCESS chunk 29.
Here is the code:
#!/usr/bin/perl -w
use strict;
I am not sure how that second period got, there but it
is not there is the original source, therefore I still
get the same error.
Any other recommendations are greatly appreciated.
Thanks
When closing your format code, use a single dot, not two of them.
-Original Message-
From:
Are there any reporting features built into Perl for
standardized reporting?
Thanks for your help
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The following script needs to loop through a file
identifying users in each user group and the outputting
that to a specific file. In the end if I have 15 groups
I should have 15 files. However, when I loop I only get
the last group outputted to the correct file. What I
think is happening
I am attempting to redirect the output from a system
command to a file, however when I print it only goes to
stdout and I get 0's in the file. The first loop works
find the second is what is failing. I have even tried
redirecting within the system function ( system
command /home/file)
I am working on AIX 4.3 and attempting to change
ownership of files. Below is an excerpt from my script
of the area that is causing the problem.
defined($user = getpwnam $_) or die Bad user name;
defined($group = getgrnam staff) or die Bad group
name;
chdir /home/$_;
chown $user, $group, glob