e C preprocessor where to search
for include files. The C preprocessor is invoked with -P; by
default it searches /usr/include and /usr/lib/perl.
hth
--
Lee Goddard
Independent Contractor, Software Development/Analysis
BBC Radio & Music Interactive
* Room 718 | Henry Wood Hs |
> #!/usr/local/bin/perl
> use strict;
>
> my $string = "Theres more than 1 way to do it"; if ($string
> =~ /\w+$/){ print "Hooray! pattern found"; print $1; }
You need to wrap the bit you wish to extract in (paremphasis) and it'll be put
into $1. If you do two (wraps), you'll get $1 and $2, and
sort values %hash?
--
Lee Goddard
Independent Contractor, Software Development/Analysis
BBC Radio & Music Interactive
* Room 718 | Henry Wood Hs | Regents St | London W1 1AA | UK * 020 776 50849 *
lee(at)server-sidesystems.ltd.uk
> -Original Message-
> From: Andrej Kastr
> I have a String which I am forming inside a variable. Say
>
> my
> $urlString="http://www.yahoo.com/mail?username=anishkumar_k&us
> erid=1234.0&companyname=abc".
>
> I am printing this string in a browser through CGI. In that case
>
> I am getting the URL with encoded characters for = say now
Xavier Mas i Ramón [mailto:[EMAIL PROTECTED] :
> A Dijous 21 Setembre 2006 01:38, [EMAIL PROTECTED] va escriure:
>
> > I am looking for some simple perl functions that will return the
> > current date and time in string format. The purpose is to create a
> > file with part of the name being the d
> if i use one array in foreach loop then can i use same array
> in another part of the code.
What do you think? Have you actually tried to do this?
Perhaps you could submit the smallest possible piece of code illustrate
your prediciment?
--
http://www.bbc.co.uk/
This e-mail (and any attachm
From: Ricardo SIGNES [mailto:[EMAIL PROTECTED]
Sent: 21 September 2006 01:19
To: beginners@perl.org
Subject: Re: Non-technical question
X-Message-Flag: Warning: This sender thinks he is better than you.
X-Planet: Planet of the Apes
User-Agent: Mutt/1.5.11+cvs20060126
Nice headers, Ricardo. Anywa
> I need to find every ocuring "... blok in a text,
> even If this ocurs multiple times on 1 line.
If you're doing HTML it's worth looking HTML::TokeParser for a quick and
easy and generally reliable means of extracting the contents of the
'bold' element: great POD, too -- this is a slightly
> I found a solution .
> I ran "ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd";
> as mentioned in
> http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Repository
>
> That solves everything.
It's not a bad idea to add Theory5, since Randy who runs it will often
build PPMs if
> From: Nagasamudram, Prasanna Kumar
> Hi Lee
>
> I tried to search for the GD module through ppm and was
> unable to find it, so I downloaded the tar file from cpan and
> installed it manually.
Ah, that's the problem: GD is a perl binding (Perl, C and glue) to GD.
Do you have a compiler?
B
> I'm trying to use the GD module. for plotting a graph on
> WINDOWS but my Perl script is crashing.
>
> Here is the piece of code which is crashing [Perl Command
> Line Interpreter has encountered a problem and needs to
> close. We are sorry for the inconvenience.]
>
> use GD::Graph::ba
> After searching the cpan.org site for mathematical modules, I
> did not find a module which can display graphically the
> result of a function.
> I want to see a function curve displayed in a graphical window?
>
> How can I make it possible in Perl?
> Thanks in advance for your help.
Module n
use strict;
use warnings;
my $string;
while (1){
print "Please enter 1-5 letters: ";
chomp ($string = );
last if $string =~ m/^[a-z]{1,5}$/i;
# last if $string =~ m/^\w{1,5}$/;
print "that is wrongtry again: ";
}
I think the problem was not the pattern
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
> Derek B. Smith wrote:
>
> > OK CPAN yes I know it is an open source project, but are there task
> > assignments for specific tasks/projects as opposed to submitting a
> > module?
>
> So you are looking for an open source project done in Perl
>
> i need to install the the package NET::SSH::Perl
> and when i
> try to do that through PPM i get the package not found error.
There is no PPD on the ActiveState servers, but you can find one here:
http://cpan.uwinnipeg.ca/module/Net::SSH::Perl
The link includes docs on how to perform the ins
> ...The only thing to
> watch out for is that you will be violating the ActiveState
> license if you distribute your own ActivePerl distribution
> outside of your organization without getting their okay first.
However, other people have built Perl for Windows using the AS source,
and made it f
At 20:13 06/09/2003, Devon Young wrote:
What does this mean?? I'm thoroughly puzzled and I've been scouring the
net for an answer. I've been assuming it means I'm not putting strings
together correctly, but I can't figure out how to fix it. Here's the
errors I'm getting, followed by the peice of
Please check the archive of perl-win32-users :
this was asked and answered yesterday!
Please don't cross post to so many groups:
this reply to so many is just to save others
time.
lee
1. Cross-posting to this many lists is a bit rude.
2. Have you looked around yet? There are many examples of
such scripts. It's silly to expect your work to be done
for you.
3. Spelling is an important in English as Perl.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[E
19 matches
Mail list logo