Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: expressions as constants

by broquaint (Abbot)
on Jul 15, 2004 at 06:10 UTC ( #374548=note: print w/ replies, xml ) Need Help??


in reply to expressions as constants

Just stuff it in an anonymous subroutine e.g

my $last_in_sentence = sub { $content_array[$location] =~ m/\. $/s }; if(&$last_in_sentence) { ... }
See. perlsub and perlref for more info.
HTH

_________
broquaint


Comment on Re: expressions as constants
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-08-01 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls