Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: The Concept of References

by dragonchild (Archbishop)
on Apr 14, 2005 at 12:43 UTC ( #447737=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    char string[] = "Hello";
    char *ptr;
    fr ( ptr = string; *ptr; ptr++ ) {
        do_something_with( *ptr ); // This is a single char
    }
    
  2. or download this
    foreach my $char ( split //, $string ) { ... }
    while ( $string =~ /(.)/g ) { my $char = $1; ... }
    for ( my $i = 0; $i <= length $string; $i++ ) { my $char = substr( $st
    +ring, $index, 1 ); ... }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://447737]
help
Chatterbox?
[Lady_Aleena]: I'll just have to search for the files using the subs and open them up.
[Discipulus]: nice Perl dreams, folks.. shower->Dumas->bed
[erix]: pere ou fils?
[Lady_Aleena]: Discipulus, good night.
[Discipulus]: pere, le vicomte de bragelonne.. wonderfull
[erix]: I'll keep that in mind (haven't read), buona notte :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-05-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?