Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Writing portable code

by rovf (Priest)
on Mar 08, 2013 at 09:29 UTC ( #1022361=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f {
      if($^O =~ /Win/) { .... } else { ... }
    }
    
  2. or download this
    my $f = if($^O =~ /Win/) ? sub { ... } else { ... };
    
  3. or download this
    # Not real Perl code right now!
    IF ....
    ...
      sub f{ ... }
      sub g { ... }
    END
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1022361]
Approved by marto
Front-paged by Lotus1
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-02-27 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (378 votes). Check out past polls.