Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: embedded gcc and awk

by jmcnamara (Monsignor)
on Mar 28, 2002 at 13:14 UTC ( [id://154948]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $_='gcc 92 !$* % "awk in I$: ar& $:a"';
    
        foreach (/(\S)/g) {
    ...
        y;1;#;;
        print;
    
  2. or download this
        $_='gcc 92 !$* % "awk in I$: ar& $:a"';
    
        foreach $char (/\S/g) { # Capturing parens not needed
    ...
        tr/1/#/;
        print $_;
    
  3. or download this
        $str.= substr(unpack("B*",pack(n,unpack("c",$char))),-4);
        
        unpack("c",$char) # is the same as
    ...
    
        substr(..., -4)   # Get the last 4 chars:        0111
    
  4. or download this
        01110011001110010010
        00010100101001010010
        00010111101110011110
        10010100101000010010
        01100100101000010010
    
  5. or download this
        tr/01/ #/;
  6. or download this
         ###  ##  ###  #  # 
           # #  # #  # #  # 
           # #### ###  #### 
        #  # #  # #    #  # 
         ##  #  # #    #  #
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-19 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found