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

Re: Forcing array context

by jarich (Curate)
on Nov 22, 2002 at 05:32 UTC ( [id://215009]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @chars = split //, $string;
    
  2. or download this
    foreach my $char (split //, $some_string)
    {
    ...
                     $char = "|";
            }
    }
    
  3. or download this
    $string = join("", @chars);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found