Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Re: substring exists at particular postion?

by Joost (Canon)
on May 23, 2002 at 10:15 UTC ( [id://168730]=note: print w/replies, xml ) Need Help??

in reply to Re: substring exists at particular postion?
in thread substring exists at particular postion?

I think that writing this out will turn out to be the most efficient method, except that you only need to get the substr once for your example:

while(<IN>) { my $t = substr($_, 259, 1); if($t eq "B") { print B $_; } else if ($t eq "T") { print T $_; } else if () { # and so on for at least 10 lines!... } }
-- Joost downtime n. The period during which a system is error-free and immune from user input.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-05-25 07:24 GMT
Find Nodes?
    Voting Booth?

    No recent polls found