Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Increaing a field size for a record

by Thomas Kennll (Acolyte)
on Oct 16, 2012 at 19:27 UTC ( #999408=note: print w/ replies, xml ) Need Help??


in reply to Re: Increaing a field size for a record
in thread Increaing a field size for a record

Thanks!! But this doesn't seam to be working for me. :( #!/usr/bin/perl open FILE, rij1.dat"; my @lines = <FILE>; foreach my $lin (@lines) { my $btw = substr($lin, 15, 0, "1" x 39); print "$btw"; } close FILE;


Comment on Re^2: Increaing a field size for a record
Re^3: Increaing a field size for a record
by flexvault (Parson) on Oct 17, 2012 at 13:29 UTC

    Thomas Kennll,

    That's not what I showed you, please note:

    foreach my $lin (@lines) { substr($lin, 15, 0, "1" x 39); print "$lin\ +n"; }

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999408]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-07-23 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (154 votes), past polls