in reply to script not working
#!/usr/bin/perl use strict; use warnings; open (file1, "file1.txt"); my @lines1= <file1>; my $fivefirstfile1= substr($lines1[2], 0, 5); print "Five first characters are:", $fivefirstfile1, "\n"; # print "Five first characters are: $fivefprot1\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: script not working
by Anonymous Monk on Dec 27, 2012 at 16:50 UTC | |
by RFMonk (Acolyte) on Dec 28, 2012 at 00:49 UTC | |
|
Re^2: script not working
by ww (Archbishop) on Dec 27, 2012 at 20:36 UTC | |
by RFMonk (Acolyte) on Dec 28, 2012 at 00:55 UTC | |
by Anonymous Monk on Dec 28, 2012 at 02:37 UTC |