Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by hippo (Bishop)
on Mar 21, 2019 at 10:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found