hey every1.
Im very new to perl, but im getting on gr8 with it, and learning more every day!
my problem is this, i want to keep records in a file, instead of only at run-time in an array.
But when i write anything to a file, then view it, I get a load of wierd characters and numerous linefeeds!!
----------------------code--------------------------
#!/usr/bin/perl
open (FILE, ">>C:/files.dat"
chomp($user = <stdin>);
$user_copy;
print FILE $user;
$user_copy = <FILE>;
close(FILE);
print "contents of file are: $user_copy\n";
----------------------------------------------------
please if anyone could help, id be V.appreciative!!
thanks very much, JoE
Im very new to perl, but im getting on gr8 with it, and learning more every day!
my problem is this, i want to keep records in a file, instead of only at run-time in an array.
But when i write anything to a file, then view it, I get a load of wierd characters and numerous linefeeds!!
----------------------code--------------------------
#!/usr/bin/perl
open (FILE, ">>C:/files.dat"
chomp($user = <stdin>);
$user_copy;
print FILE $user;
$user_copy = <FILE>;
close(FILE);
print "contents of file are: $user_copy\n";
----------------------------------------------------
please if anyone could help, id be V.appreciative!!
thanks very much, JoE