Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Subtle Quirks

by beppu (Hermit)
on Jul 28, 2000 at 14:23 UTC ( [id://24822]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub foo {
            my $self     = shift;
            my $hash_ref = shift;
    
  2. or download this
            # and so on...
        }
    
  3. or download this
        my %hash = %{ shift };
  4. or download this
        my %hash = %{ +shift };
  5. or download this
        my %hash = %{ shift() };
  6. or download this
        sub my_lc { lc +shift; }
        sub my_uc { uc +shift; }
    
  7. or download this
        printf("#%02x%02x%02x %s\n", /(\d+)\s+(\d+)\s+(\d+)\s+(.*)/);
  8. or download this
        #!/usr/bin/perl
        while (<>) {
            print "$_\n";
        }
    
  9. or download this
        $ ./script a b c
        Can't open a: No such file or directory
        Can't open b: No such file or directory
        Can't open c: No such file or directory
    
  10. or download this
        @ref = \($a, $b, $c);
  11. or download this
        my %opt;
        GetOptions(\%opt, "size|s=i");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found