Re: C expressions in Perl

From: James Willmore (jwillmore_at_remove.adelphia.net)
Date: 03/13/04


Date: Sat, 13 Mar 2004 04:13:26 -0500

On Fri, 12 Mar 2004 20:41:24 +0000, Joe wrote:

> Can I do this in Perl?
>
> Sub F{
> return true'
> }
>
> if (!F()) {do something}

`perldoc perlsub`

This gives you the documentation on subroutines in Perl.

HTH

-- 
Jim
Copyright notice: all code written by the author in this post is
 released under the GPL. http://www.gnu.org/licenses/gpl.txt 
for more information.
a fortune quote ...
When someone says "I want a programming language in which I need 
only say what I wish done," give him a lollipop. 


Relevant Pages

  • Re: Beginning beginner needing references help
    ... > hard way in an effort to learn more core perl. ... > Now the list of states also includes the counties (fetched ... >> both within and outside subroutines. ... >> You can either do what you've done above, and simply declare ...
    (perl.beginners)
  • RE: Good Intro reading
    ... I won't even quote the url. ... Being a junior perl programmer, I read a lot of docs and I came ... The CGI section is impressive, ... Let's take a look at some typically bad subroutines (the ...
    (perl.beginners)
  • A very general question to perl experts
    ... I am facing a problem day-in and day-out with my perl code. ... a couple of subroutines in it. ... sub setup { ... readDefectData is one of them. ...
    (perl.beginners)
  • Re: Help Perlling a program
    ... >>less repition or lines of code, or in a more Perl like way. ... > You should bundle repitious code into subroutines whenever possible. ... It would probably be more perlish to omit the ''. ...
    (comp.lang.perl.misc)
  • Re: case and functions
    ... People of the Perl, ... thanks for the info....I am familiar with perls subroutines so I will use ... my intention was to avoid ... Is there something similar or did I misread this? ...
    (perl.beginners)