Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: With substr, index the offset don't get proper start position

by hippo (Chancellor)
on Mar 21, 2019 at 10:55 UTC ( #1231529=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
        print "$result\n";
    }
    
  2. or download this
    #!/usr/bin/env perl 
    use strict;
    ...
    my $SpaceChar = ' ';
    my $result = (split ($SpaceChar, $line, 5))[4];
    print "$result\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-06-01 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (4 votes). Check out past polls.

    Notices?