Results 1 to 1 of 1
I used this code in perl v5.8.8 to open my coded file but it opened in a different format.Pls use this link to check and comment on the code. Thanks ...
- 08-08-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 3
open a file
I used this code in perl v5.8.8 to open my coded file but it opened in a different format.Pls use this link to check and comment on the code. Thanks ftp://archive.routeviews.org/bgpdata/2001.10/RIBS
#!/usr/local/bin/perl
#
# Program to open the password file, read it in,
# print it, and close it again.
$file = '/home/ookonor/Desktop/rib.20011026.1648-1.bz2'; # 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


Reply With Quote