Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: another way to split with limit

by guillaume (Pilgrim)
on Aug 20, 2001 at 00:06 UTC ( #106071=note: print w/replies, xml ) Need Help??


in reply to another way to split with limit

What exactly do you want to do?
If all that you want is to remove the `:' and print the string then just do:
$_ = "p:e:r:l"; $_ =~ s/://g; # substitue all the `:' by nothing print "$_\n";

Guillaume

Replies are listed 'Best First'.
Re: Re: another way to split with limit
by Anonymous Monk on Aug 20, 2001 at 00:16 UTC
    I want to actually use the individual values I was thinking maybe substitute the split part with ($a,$b) = /(.*):(.*)/;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-05-24 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?