in reply to Re^3: foreach type of deal?
in thread foreach type of deal?
Thanks! I just ran into that little bit :D.
However, I read the perldoc about substr, and I get the idea. Now my question is, what modifies the string? substr just locates the particular part of the string I want to single out, then what?
#!/usr/bin/perl use strict; use warnings; main(@ARGV); sub main { open(FH, "gtype.txt"); while( my $line = <FH> ) { my $line = substr($line,1); printf $line; } } close FH;
It works!! now what can I use to replace the printf, to use to delete?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: foreach type of deal?
by huck (Prior) on Mar 15, 2017 at 21:19 UTC | |
by hoagies (Initiate) on Mar 15, 2017 at 21:47 UTC | |
by huck (Prior) on Mar 15, 2017 at 21:50 UTC | |
by hoagies (Initiate) on Mar 15, 2017 at 22:26 UTC | |
|
Re^5: foreach type of deal?
by kennethk (Abbot) on Mar 15, 2017 at 21:46 UTC |