Write statement ?

2002-02-28 Thread slhgkh5
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

Printing Headers

2002-02-26 Thread slhgkh5
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

Using format()

2002-02-25 Thread slhgkh5
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]

Uninitialized Value Error

2002-02-25 Thread slhgkh5
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;

RE: Uninitialized Value Error

2002-02-25 Thread slhgkh5
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:

Reporting Modules

2002-02-24 Thread slhgkh5
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]

Looping

2002-02-22 Thread slhgkh5
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

Redirect output from system command to a file

2002-02-20 Thread slhgkh5
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)

Changing Ownership

2002-02-19 Thread slhgkh5
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