ik ben bezig met een perl tut maar weet niet hoe ik dit voor mekaar kan krijgen .
http://www.comp.leeds.ac.uk/Perl/filehandling.html#exercisedat is de link naar de tut.
nou bij de oefening moet je dit doen
Modify the above program so that the entire file is printed with a # symbol at the beginning of each line. You should only have to add one line and modify another. Use the $" variable.
en hier is dat programma.
#!/usr/local/bin/perl
#
# Program to open the password file, read it in,
# print it, and close it again.
$file = '/etc/passwd'; # Name the file
open(INFO, $file); # Open the file
@lines = <INFO>; # Read it into an array
close(INFO); # Close the file
print @lines; # Print the array
ik heb echt geen idee hoe dit moet kan iemand mij helpen?