I want to open a file and change a single value, its a print quota file and I want to be able to change the users print credit limit. The line I want to change looks like this,
quota=100 the path to the file (always the same name) varies only by the group directory ie, /server/users/y8 /server/users/y9 /server/users/y10 I wanted to create a prefix ($prefix) so that I dont have to type the full path all the time, unfortunately this returns the error, Opening: No such file or directory at ./credits.pl line 5. removing $prefix opens the file perfectly. Help appreciated. [EMAIL PROTECTED] ######################################################### #!/usr/local/bin/perl -w #credits.pl $prefix = "/home/jimf/Desktop/"; open(PRNT, "+< $prefix, file.ini") or die "Opening: $!"; @ARRAY = <PRNT>; print "@ARRAY" or die "Printing: $!"; ######################################################### -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]