Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

(meonkeys: lesson learned. Tusen tak!)

by meonkeys (Chaplain)
on Aug 06, 2000 at 00:58 UTC ( #26369=note: print w/replies, xml ) Need Help??


in reply to RE: (meonkeys: can't get every column)
in thread Locate char in a string

A thousand thanks. You helped me understand exactly what's going on here; you reminded me why I love this site/language! I shall repay you with a vote tomorrow. This works with your version:
#!/usr/bin/perl -w use strict; my @pos; my $line = "--------- --------- -------------- ---"; while ($line =~ / /g) { push @pos, pos($line); } print @pos;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2021-09-16 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?