Check out the path and location.
As per you current code the location of stylesheet should in the directory
where the script is lies.
As gernally all scripts are in cgi-bin which might have only execute
permission.
its better to have the style sheet into a seprate directory in website
root(say
Hi,
I'm fairly new to perl and having a little problem.
I want to delete a word from a phrase. My problem is that the word is
contained in square brackets. The phrase looks something like this :
[Deletethis] And some other words
I tried to use something like this to delete the word bet
hi
i have just started using perl and i am getting to grips quite quickly
although i would like to know : i have a text file and i need a regular
expression to pull he information off that file...?
Help would be much appreciated!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
> -Original Message-
> From: Verhare [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 01, 2001 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: Find and delete
>
>
> Hi,
>
> I'm fairly new to perl and having a little problem.
>
> I want to delete a word from a phrase. My problem is that
First note
> my $wordtodelete = "[Deletethis];
should have a trailing quote mark, like this
> my $wordtodelete = "[Deletethis]";
Perhaps you need something like
my $wordtodelete = "\[Deletethis\]";
- Roger -
- Original Message -
From: "Verhare" <[EMAIL PROTECTED]>
To: <
> -Original Message-
> From: Roger C Haslock [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 01, 2001 10:38 AM
> To: [EMAIL PROTECTED]; Verhare
> Subject: Re: Find and delete
>
> ...
> Perhaps you need something like
>
> my $wordtodelete = "\[Deletethis\]";
But that will have no
i need to know where to put a new line in.i keep getting errors..?
here is what the code looks like, if anyone can help with the newlinei
would much appreciate it.
#!/usr/bin/perl -w
$file = 'dnsbills.06-09-2001';
open FILE, $file;
@lines = ;
close (FILE);
for ($line=0;$line <
On Mon, 1 Oct 2001, Gareth Londt wrote:
> i need to know where to put a new line in.i keep getting errors..?
> here is what the code looks like, if anyone can help with the newlinei
> would much appreciate it.
>
> #!/usr/bin/perl -w
>
> $file = 'dnsbills.06-09-2001';
>
> open FILE
> -Original Message-
> From: Gareth Londt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 01, 2001 10:54 AM
> To: [EMAIL PROTECTED]
> Subject: a new line?
>
>
> i need to know where to put a new line in.i keep
> getting errors..?
> here is what the code looks like, if a
Hi,
At 1-10-2001 10:12 -0400, Bob Showalter wrote:
> > my $wordtodelete = "[Deletethis];
>
>There's a quote missing at the end of this line.
Sorry, typo in my email, not in the script.
>Since your $wordtodelete may or may not include such "meta"
>chars, the best way to do this is to use t
Hi,
Can anyone give me the code that will replace all the carriage returns in a
variable with another character.
I am getting input from a web page and need to replace the returns with the
tag.
Thanks,
Guy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Mon, 1 Oct 2001, Guy Tubbs wrote:
> Can anyone give me the code that will replace all the carriage returns in a
> variable with another character.
>
> I am getting input from a web page and need to replace the returns with the
> tag.
I tried this:
my $text = "some text\n";
$text =~ s/\n//g
On Monday 01 October 2001 05:26 am, Rajeev Rumale wrote:
> Check out the path and location.
>
> As per you current code the location of stylesheet should in the directory
> where the script is lies.
> As gernally all scripts are in cgi-bin which might have only execute
> permission.
>
>
> its bett
Something like this?
my $othercharacter = 'Z';
$yourvariable =~ s/\r/$othercharacter/g;
# \r is carriage return
# /g at the end means do them all
- Roger -
- Original Message -
From: "Guy Tubbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 4:53 PM
Subject
Hi,
I have a variable $var = 34.5678
If I
printf ("%.2f", $var);
Then $var = 34.56
Is there a way for me to format $var to became 34,56 instead of 34.56 ???
Thanks,
Wagner.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have a variable $var = 34.5678
If I
printf ("%.2f", $var);
Then $var = 34.56
Is there a way for me to format $var to became 34,56 instead of 34.56 ???
Thanks,
Wagner.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I would have done it like this.
$var = 34.5678;
$var=~/((\d+).(\d{0,2}))/;
$var = $1;
$var=~s/\./,/sg;
printf (" The formated value is : $var");
---OUTPUT
The formated value is : 34.56
Well there may be better and more straigth forward ways, I was just trying
to get used to Patterns and s
Yeup ! The the "TYPE" declaration is very important !.
We tend to ignore such things when we use MS platforms...:-(
Thanks for correcting me Michael .
with Regards
Rajeev Rumale
- Original Message -
From: "Michael D. Risser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Oc
18 matches
Mail list logo