To add the 0, you can use sprintf();
$scalar = "9:59";
@temp = split /:/,$scalar;
$temp[0] = sprintf(%02d,$temp[0]);
# $temp[0] now equals "09"
# $temp[1] now equal "59"
Now you haven't really described the nature of the data all that well, but
you can probably figure it out from here.
-
On 21/3/02 22:23, "Michael Kelly" <[EMAIL PROTECTED]> wrote:
> What do you mean? CGI.pm seems to have a function for generating just about
> every HTML that ever did, does, or will exist. Maybe I'm misunderstanding
> what you mean by "Perl/CGI webpage"...
I'm pretty sure it does, I'm just having
I installed the perlfect search on two sites. And I need to write a script
so they can be indexed from an html form or link. Can Scripts run other
scripts by sending a link to that file? In other words can I make the
script indexer.pl run from a link.
Matthew Harrison wrote:
>
> I have two scalars created from passed params. i want to create a third
> variable by subtracting the two scalars. how can i do this? i have tried:
>
> $need = $dif - $score
>
> but i get a 500 server error and my error log says that i cannot use the
> '-' operator o
I have two scalars created from passed params. i want to create a third
variable by subtracting the two scalars. how can i do this? i have tried:
$need = $dif - $score
but i get a 500 server error and my error log says that i cannot use the
'-' operator on a scalar variable. can anyone suggest
R wrote:
>
> Need help on substitute and Join.
>
> I am breaking incoming mostly fixed layout records into pieces such that I can re
>JOIN them after inspecting the first 3 characters independently and changing the
>column 2 to make it be columns 2 and 3, with a leading 0.
>
> Problem is t
Need help on substitute and Join.
I am breaking incoming mostly fixed layout records into pieces such that I can re JOIN
them after inspecting the first 3 characters independently and changing the column 2
to make it be columns 2 and 3, with a leading 0.
Problem is to 0(zero) fill the date
Bruce,
if you ever need to find a module you can either use PPM if your running
ActiveState or you can goto CPAN
http://search.cpan.org and type in the name of the module your after
(without the .pm)
http://search.cpan.org/search?mode=module&query=LinkExtor is the link to a
listing of the mods
I don't know myself, but FYI it's always pretty quiet on Sundays.
-Original Message-
From: Bruce Ambraal
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: 3/24/02 9:37 AM
Subject: The LinkExtor.pm module (Wow! its very quiet in here) Anybodyout
there!!!
Hi friends
I call you all frien
In a private correspondence someone wrote:
> The application is called FastCommandPrompt. At
> http://www.webattack.com, if you enter fast command,
> it is the first one which shows up on your screen.
>
> After installation, it is a right click and the
> option 'Launch Command Prompt' and yo
Hi friends
I call you all friend because I am very impress with the way in which you are guiding
me.
Indeed I want to locate the LinkExtor.pm module.
Cheers
Bruce
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail:
> Indeed I want to locate the LinkExtor.pm module.
>
> Cheers
> Bruce
>
Assuming you have ActivePerl installed, try these two commands:
D:\>ppm search link
Packages available from
http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/PPMServer:
ASP-NextLink[0.11] Perl impleme
Hi friends
I call you all friend because I am very impress with the way in which you are guiding
me.
Indeed I want to locate the LinkExtor.pm module.
Cheers
Bruce
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have a DHTML editor embedded in a webpage. The output of the editor is
handled by perl and written to text-files.
Sometimes text is pasted into the editor from a word document, and it
contains unicode characters from sets such as Latin Extended Additional.
(This is on a win2k machine.)
Ques
> I have pulled the seach.html file as follows:
> I went to link http://srch.overture.com) then search for word "help",
> then I save the result as file named search.html
> Then I wrote the script below to extract and find the URLs in this
> saved web page (which is not working very well).
>
> Par
> "Bob" == Bob Ackerman <[EMAIL PROTECTED]> writes:
Bob> i get error when trying this line. macosx. perl 5.6.1.
Bob> perl -e"for (55..75) { print chr($_) }"
Bob> it says:
Bob> Unmatched ".
Bob> problem with '$_'. shell must be looking at it and messing it up.
Bob> how do i get the '$' thro
On Sun, 24 Mar 2002 03:31:17 -0800, [EMAIL PROTECTED] (Gary Hawkins) wrote:
>Is there a way to set up for starting a CMD window using a right click within
>that folder somehow, so the prompt is already in that folder? This routine of
>'Start > Run > cmd' and then D: and cd foo etc can be a littl
Is there a way to set up for starting a CMD window using a right click within
that folder somehow, so the prompt is already in that folder? This routine of
'Start > Run > cmd' and then D: and cd foo etc can be a little monotonous.
This is Windows 2000.
Gary
--
To unsubscribe, e-mail: [EMAIL
18 matches
Mail list logo