Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Gratuitous use of Perl Prototypes

by grantm (Parson)
on Nov 08, 2004 at 22:39 UTC ( #406231=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub PUSH {
        my(@array, @new_items) = @_;
    ...
    
      my @target = ('RED', 'GREEN');
      PUSH(@target, 'blue');
    
  2. or download this
      sub PUSH {
        my($array, @new_items) = @_;
    ...
    
      my @target = ('RED', 'GREEN');
      PUSH(\@target, 'blue');
    
  3. or download this
      sub PUSH (\@@) {
        my($array, @new_items) = @_;
    ...
    
      my @target = ('RED', 'GREEN');
      PUSH @target, 'blue';
    
  4. or download this
         sub border_style ($$$) {
    
  5. or download this
         sub border_style {
           my($width, $style, $colour) = @_;
    
  6. or download this
        sub border ($;$$) {
          my($width, $style, $colour) = @_;
    ...
    
          return "border: $width $style $colour;";
        }
    
  7. or download this
        print border('1px'), "\n";
    
  8. or download this
        my @args;
        push @args, $selected ? '5px' : '1px';
    ...
        push @args, 'red' if $selected;
    
        print border(@args), "\n";
    
  9. or download this
        "border: 5px dashed red;"
    
  10. or download this
        "border: 3 solid black;"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://406231]
Approved by Arunbear
Front-paged by hsmyers
help
Chatterbox?
[Corion]: So, it's not all bad with the new FF :)
[holli]: 2factor is a bit too much for me. i just use passwords like jhbn8789q27312laks dmaw98^
[moritz]: isn't there also some about:config setting to enable the old plugin API?
[Discipulus]: indeed, only the logo is nicer
[Corion]: moritz: Hmm, I doubt so, as I think they moved away from XUL and other UI stuff, which was used by most plugins I used
[Corion]: holli: I'm trying it out with Github and so far I don't dislike it. It's basically like an extra key I press to log in, which is an OK flow for Github
[Corion]: I haven't tried out recovery in case of a broken USB key though (even though I have three such U2F tokens lying around here)
[oiskuu]: randomly banging on the keyboard yields pretty poor entropy. much better to just base64 some /dev/random
moritz has a pass entry with recovery codes
[oiskuu]: Corion, what version was your old FF and what reason for upgrade?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-11-20 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (293 votes). Check out past polls.

    Notices?