$value=$2*1.0;
if ( ($value =10 ) || ( $value =200 ) {
do_something();
}
On Mon, 22 Mar 2004, Matt Bazan wrote:
Date: Mon, 22 Mar 2004 15:02:12 -0800
From: Matt Bazan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Need help pruning data..
Hi all,
I've got an array that
Matt Bazan wrote:
Peter Guzis wrote:
Benchmark: timing 1 iterations of use_grep_block,
use_map_split, use_regex, use_rindex, use_split...
use_grep_block: 8 wallclock secs ( 7.96 usr + 0.00 sys = 7.96 CPU) @ 1256.12/s
(n=1)
use_map_split: 10 wallclock secs ( 9.94 usr +
$heygoodday = how are doing you sir;
$hi = $hey;
$hello = $hi.goodday;
Print $hello;
And get the output from $heygoodday? Is this possible in perl?
I need it because I now the last piece of the variable name goodday,
And the first piece that I need to get from the db. So that could be
Title: RE: Can a variable be made like this?
you can do what you want, but not quite as you stated. It would be something like this:
$hi = $db-lookup; # how you do this depends on your db and script
$hello = ${hi}goodday;
print $hello;
-Original Message-
From: Kenneth Lodahl
No...
you [don't really] want
perl -e $x='hello';${$x}='Check this';print $hello;
YOU WOULD BE BETTER TO USE A HASH... Why do you need this [very unsafe]
construct?
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
Kenneth, use this (like Mark suggested)
$var{'heygoodday'} = 'how are doing you sir';
$var{'hi'} = hey;
$var{'hello'} = $var{ $var{'hi'} . 'goodday' };
print $var{'hello'};
Dietmar
Hamburger Berater
No...
you [don't really] want
perl -e $x='hello';${$x}='Check this';print $hello;
YOU WOULD BE BETTER TO USE A HASH... Why do you need this
[very unsafe]
construct?
Kind regards,
Mark Anderson
SMS Deployment
Good advice.
#!perl -w
use strict;
my %greeting;
I'm trying to grab a website's description from the meta tags
but I can't seem to make it work all the time.
As people have pointed out, it's best to use a parser to parse HTML, not a
regex. Here's some code (untested) as a starting point for two different
parsers.
# Sample HTML::Tokeparser
Hello there,
I am trying to setup a search engine for the web-site I have
created. I have setup a search engine script using the File::Find module but it
is really slow. Anyone know of any faster way of doing so - maybe a grep
of all the files within a directory and its sub-directories
Hello,
I am wondering if someone knows how to add POD documentation for a module
that was installed from CPAN (and not PPM) to ActiveState Perl's HTML
documentation system. I have looked through the ActiveState docs, and have
not found it mentioned...
I see two things that need to be done if I
Well, my search script currently parses
the main directory and all its sub-directories for html files and then uses
regular _expression_ to match the words user has entered for the search
open(IFP, $File::Find::name) or print Search error $! :$fname br;
# only if html file
my
Hi Jean-Sébastien,
Fortunately, you don't need to do this manually.
Copy your POD file in the Perl directory somewhere near other POD files like
Perl\lib\... or Perl\site\lib\...
Open a command prompt then executes this command
perl -MActivePerl::DocTools -e UpdateHTML()
The Html file of your
perl -MActivePerl::DocTools -e UpdateHTML(1)
Bradley K. Embree, IT Support
Excel Kitchens
Email: [EMAIL PROTECTED]
Phone: 1.250.376.8713
Fax: 1.250.376.4511
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guay
Jean-Sébastien
Sent:
13 matches
Mail list logo