Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

(meonkeys: lesson learned. Tusen tak!)

by meonkeys (Chaplain)
on Aug 06, 2000 at 00:58 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-16 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found