> "caller" only gives only the name of current sub
You didn't read the docs carefully enough...
caller($calldepth)
perldoc -f caller
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks "me".
But the what i need is the grep the name of the sub which is calling the
loging sub.
As you have suggested "caller" only gives only the name of current sub
routine that is &debugLogger it self.
And I had to do call the "caller" before calling the "debugLogger" and pass
all the info
Dear List,
print<
HELLO WOLRD!
HTML
If this HTML is being run with Perl which it is of coarse how would I know
what version of the HTML it is.
I really hope this makes sense. I read there is alot of different versions
of HTML such as 3.2 and 4.0. Does the browser take care of
On Aug 6, Mooney Christophe-CMOONEY1 said:
>That would do it. Without the 's' in front of the regex, it doesn't know
>you're trying to search and replace.
>
>The divide error is odd, and shouldn't be happening, but try this instead:
> s(\s*)()g
The divide-by-zero error was because writing
Gnome has nothing specifically to do with Linux. It is a window manager and can be run
on top
of other OS that run some form of X too. Solaris for instance. most *nix users tend to
use very
little of GUI inspite of very GUIsh managers available. what you could do is write to
the
authors, team
Can I use a pointer as key of a hash? I wanted to do this way however, it
failed and output nothing. Then I change to use the content of the pointer
as key, it works.
Best Regards,
Katherine Qiang
http://home.cwru.edu/~qxq2
http://kittyqiang.tripod.com
_
Hi all,
I'm looking for a way to script the creation of a user on an Exchange 5.5 server.
I'd like to be able to just enter details at the command line and have the
mailbox
created automatically. Any ideas?
Offler
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
On Mon, 6 Aug 2001, Chris Garaffa wrote:
> Hello everyone. I just joined the list, but I checked the archive earlier
> to see if this was covered. Sorry if I missed it.
>
> My question is regarding UNIX commands. I know you can get the output of a
> command using the ` notation. My script has thi
Using the backticks will only get you data coming on handle 1, STDOUT.
You want the data coming on handle 2, STDERR, as well. You need to
combine them by appending 2>&1 to your system command.
Better yet, use perl's internal file functions like move, copy, rename,
etc. You get better control, l
There are always a hundred ways to do something, and others might know a
better way, but I'd use a sprintf statement to zero-pad your date values
like this:
my $date_added = sprintf("%04d%02d%02d", $year $mon $mday);
Make sure you adjust the values of year month & day from the raw values
suppli
At 08:15 PM 8/6/01 -0400, Chris Garaffa wrote:
>My question is regarding UNIX commands. I know you can get the output of a
>command using the ` notation. My script has this line:
>my $command = `mv /$formdata{name}.html /Library/WebServer/Document/About/
>$formdata{name}.html`;
You're on a Mac,
Hello everyone. I just joined the list, but I checked the archive earlier
to see if this was covered. Sorry if I missed it.
My question is regarding UNIX commands. I know you can get the output of a
command using the ` notation. My script has this line:
my $command = `mv /$formdata{name}.html /
List,
Please accept my sicerest apologies for not explaining myself correctly in
my last post (RE: SORTING BY DATE).
What I really need to be able to do is have my script display the date as
YEAR () MONTH (xx) DAY (xx)
For egsamle todays date would be displayed as 20010807
At the moment I
Hi Elaine
Thanks for the info. After spending loads of time searching the web I
decided to send an email to this group. As usual I found the answer about
an hour later. Basically the suggestion in the perl security stuff of
writing just a .c wrapper with an exec statement doesn't work, or at
Hi,
I think that you can do it like this:
s/^/ //g;
will work (or should work) in SED, so I assume that it
will in Perl also.
HTH,
Thomas Adam
--- Scott Martin <[EMAIL PROTECTED]> wrote: >
How can I remove white space from the beginning of a
> variable?
>
> -Scott
>
>
=
Thomas
Actually, \s takes care of any whitespace, including tabs.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 4:09 PM
To: [EMAIL PROTECTED]
Cc: Perl Help; 'Mooney Christophe-CMOONEY1'
Subject: RE: Remove White Space
make sure you are also
make sure you are also getting rid of tabs
$var=~s/\t*^//g
"The software said it required Windows 3.1 or better so I installed Linux.
"
Royce Wells
Unix Systems Engineer
Dept # 8023
103 S. Front St.
Memphis, TN 38101
Phone: (901)495-7538
Fax: (901)495-3300
--
That would do it. Without the 's' in front of the regex, it doesn't know
you're trying to search and replace.
The divide error is odd, and shouldn't be happening, but try this instead:
s(\s*)()g
-Original Message-
From: Scott Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, Augus
At 01:49 PM 8/6/2001 -0700, Wagner-David wrote:
> Should be ^ not $ to remove leading and \s+$ to remove trailing.
To quote a famous philosopher:
D'OH
(The hamster falls off the wheel if he's not paying attention)
My bad and my sincere apologies.. Thanks for the correction.
No error messages or anything, but the white space is still in there. I
did, however change the syntax to
$var=~ s/\s*//g;
From
$var=~/\s*//g;
Because I got a divide error when using the later.
-Scott
-Original Message-
From: Mooney Christophe-CMOONEY1 [mailto:[EMAIL PROTECTED]]
Sen
How can I remove white space from the beginning of a variable?
-Scott
What happens when you try?
-Original Message-
From: Scott Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 4:05 PM
To: 'Mooney Christophe-CMOONEY1'
Cc: 'Perl Help'
Subject: RE: Remove White Space
That's what I thought it would be but still no luck.
-Scott
-Original
That's what I thought it would be but still no luck.
-Scott
-Original Message-
From: Mooney Christophe-CMOONEY1 [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 4:52 PM
To: Perl Help
Subject: RE: Remove White Space
$var=~/\s*//g; # ;)
-Original Message-
From: Scott M
$var=~/\s*//g; # ;)
-Original Message-
From: Scott Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 3:56 PM
To: Perl Help
Subject: RE: Remove White Space
After I sent it out, I actually came up with the idea myself after some
digging. (go figure) any case, I am now havin
Should be ^ not $ to remove leading and \s+$ to remove trailing.
Wags ;)
-Original Message-
From: Carl Rogers [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 13:46
To: [EMAIL PROTECTED]; Perl Help
Subject: Re: Remove White Space
At 04:13 PM 8/6/2001 -0400, Scott Martin
After I sent it out, I actually came up with the idea myself after some
digging. (go figure) any case, I am now having another problem which,
even after some research still proves difficult. I have a variable
like: file .htm but what I want to do is trim the white space between
file and .htm a
At 04:13 PM 8/6/2001 -0400, Scott Martin wrote:
>How can I remove white space from the beginning of a variable?
$variable =~ s/$\s+//;
removes one or more spaces in the beginning
HTH
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
$var=~s/^\s*//;
-Original Message-
From: Scott Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 3:13 PM
To: Perl Help
Subject: Remove White Space
How can I remove white space from the beginning of a variable?
-Scott
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
> -Original Message-
> From: Scott Martin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 4:13 PM
> To: Perl Help
> Subject: Remove White Space
>
>
> How can I remove white space from the beginning of a variable?
This is a FAQ:
perldoc -q strip
--
To unsubscribe, e-mail
substitute whitespace for nothing while matching the beginning of the
scalar?
On Mon, 6 Aug 2001, Scott Martin wrote:
> How can I remove white space from the beginning of a variable?
>
> -Scott
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Do the pre-processing and the import to Excel need to be separate? I have
used Spreadsheet::WriteExcel and it is really easy to write an Excel
spreadsheet directly from perl.
You could parse the data into a perl structure, loop through it and
layout the Excel file in one script.
Just a thought.
Hey, awhile back the group was talkin a little about using a sh script
header or something to call perl regardless of perl's location in the
os... anyone remember how that was done or where in a faq this info is?
-mL
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I really wish I knew more in order to help you, but all I can do is suggest that you
go to the gAIM homepage and e-mail the author with your questions. As a matter of
fact, if/when you do find out what sort of plugins can/should be made for gAIM, e-mail
me and let me know, because I've wondered
Hmm ... it looks like there's something called "libfaim", which is a collection of C
subroutines that give access to AIM. My guess is that it's what GAIM uses.
If you're really ambitious, i suppose you could come up with a perl interface to this
library yourself ...
-Original Message-
you want the qr// operator
that means 'quote regex'
hth
Jos
- Original Message -
From: "Adimoolam Narayanan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 9:18 PM
Subject: Regular Expressions
> Hi,
>
> In a nutshell, I have been trying to store a reg. exp.
You should use qr instead of qq. -- Hanming
-Original Message-
From: Adimoolam Narayanan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: Regular Expressions
Hi,
In a nutshell, I have been trying to store a reg. exp. in a variable so that
On Monday 06 August 2001 14:58, Tom Malone wrote:
> I hope that I did not violate some rule of list etiquette with my messages
> about writing Perl scripts for GAIM ("GAIM", "GAIM && Perl", and "Perl
No, but you're asking a very specialized question that is as much about GAIM
as about Perl.
You
Hi,
In a nutshell, I have been trying to store a reg. exp. in a variable so that
it can be called later. If it can be stored in a variable, is there any
penalty incurred in terms of run time efficiency, etc?
Explanation of the above question is given below:
I am storing the reg. exp. in "$vari
If some french people are there, I created a new perl mailing list in
french.
You can subscribe at www.debianworld.org
I'm looking also for some guys to translate the site in english ...so if
someone is interested in ...
---
E. Stojicevic - SIA Perses
Hi,
I wrote a few Perl modules, but I have never written a structured testing
script. I am studying ExtUtils::MakeMaker and Test modules, but have
difficult to understand them. It will be greatly appreciated if some of you
can give me some examples or point me to some references!
Thanks.
Hanmin
On Mon, 6 Aug 2001, Bob Showalter wrote:
> > Is that what my problem was (why nobody responded)? Because
> > a lot of people
> > didn't know what GAIM was? I hadn't expected that windows
> > users would be
> > familiar with it, but I thought most Linux people would know about it.
>
> I do not u
Sorry!!! I thought it was well-known GAIM is a Linux client for AOL
Instant Messenger. It does everything AOL's IM does, even looks like it, but
it supports certain plugins, and you can write Perl scripts for it. My
questions are - What are some typical things you can make it do by wri
Excel should only see the \t character. It sounds as though the \t is not being
picked up correctly. Have you tried a comma delimiter? It not Perl, but I have had
better luck with comma or semi-colon delimiters with Excel.
Chris D. Garringer
LAN/WAN Manager
Master Certified Netware Engineer
Is that what my problem was (why nobody responded)? Because a lot of people
didn't know what GAIM was? I hadn't expected that windows users would be
familiar with it, but I thought most Linux people would know about it.
Tom
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
> -Original Message-
> From: Tom Malone [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 3:26 PM
> To: Bob Showalter
> Subject: Re: Did I violate?
>
>
> Is that what my problem was (why nobody responded)? Because
> a lot of people
> didn't know what GAIM was? I hadn't expec
Hello,
I have some data in a matrix from the linux world; I am attempting to
construct columns from the matrix and output them to a file, which later
needs to be opened in Microsoft Excel to be manipulated. Right now I am
making the columns using "\t" as a delimiter.
If the number of columns re
I am attempting to write a log analysis program in Perl for a Windows app. I normally
use Linux/Unix so Bill'sMoneyMachine can frustrate me.
Log files are generated when 1) the program restarts, or 2) the file size exceeds
10MB. So I need to pass to the program a file spec to catch 1 days log
At 02:51 PM 8/6/01 -0400, Yacketta, Ronald wrote:
>Thanxs!
>
>now off to modify my exec code that parses an entire array of files :)
Of course, the arrayrefs could equally well have been stored in an array
instead of a hash. There's a thin justification for a hash in the absence
of any other c
> -Original Message-
> From: Tom Malone [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 2:59 PM
> To: [EMAIL PROTECTED]
> Subject: Did I violate?
>
>
> Hey everyone!
>
> I hope that I did not violate some rule of list etiquette
> with my messages
> about writing Perl script
What's GAIM?
-Original Message-
From: Tom Malone [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: Did I violate?
Hey everyone!
I hope that I did not violate some rule of list etiquette with my messages
about writing Perl scripts for GAIM
Hey everyone!
I hope that I did not violate some rule of list etiquette with my messages
about writing Perl scripts for GAIM ("GAIM", "GAIM && Perl", and "Perl
Scripts for GAIM"). I posted three messages, and all of them went unanswered.
It may be that they were overlooked, but I just want to
> -Original Message-
> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 1:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: == vs eq What's the difference?
>
> ...
> To elaborate, all strings have a numerical value of 0.
Ouch! need to clarify that a bit.
When c
Thanxs!
now off to modify my exec code that parses an entire array of files :)
> -Original Message-
> From: Peter Scott [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 14:36
> To: Yacketta, Ronald; Beginners (E-mail)
> Subject: Re: ideas to clean this up?
>
>
> At 01:55 PM
At 01:55 PM 8/6/01 -0400, Yacketta, Ronald wrote:
>Folks,
>
>I have this butt ugly little perl code here,
Your honesty is refreshing :-)
>would like some ideas on really
>streamlining it and cleaning it up.
>
>opendir DIR1, "../logs/set1" or die "Can't open ../logs/set1: $!";
>opendir DIR2, "../
You will never have duplicate keys in a hash. If you try to use the same
key more than once, it will simply overwrite the previous definition:
%blah=('a_key' => 'first definition', 'a_key' => 'second definition',
'a_key' => 'YES!!')
the key 'a_key' appeared three times, but each time it overwri
At 04:22 PM 8/6/2001 -0200, Hamish Whittal wrote:
>Hi all,
>
>I am using Joe Marzot's perl module 4.2.0. I am doing a walk of a
>variable that returns a hex value. Problem is, I have no idea the value
>will be hex, till I try to print it. 2 questions:
>
>1. I think I could find a hex value by test
Folks,
I have this butt ugly little perl code here, would like some ideas on really
streamlining it and cleaning it up.
opendir DIR1, "../logs/set1" or die "Can't open ../logs/set1: $!";
opendir DIR2, "../logs/set2" or die "Can't open ../logs/set2: $!";
opendir DIR3, "../logs/set3" or die "Can't
sorry to ask this as I saw the same question but cannot remember the
answer.
if I have a hash, how do I get rid of the elements that appear more than
once?
thank you very much
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[Agh! I'm used to groups that automatically change the reply-to address!
Apologies to all the messages I'm only sending to individual people. I'm not
used to this yet...]
On 8/6/01 10:33 AM, Brett W. McCoy wrote:
> On Mon, 6 Aug 2001, CDitty wrote:
>
>> The subject pretty much says it all. Why
== converts the arguments to numbers. So, even though
("1 blah blah blah" eq 1)
is FALSE,
("1 blah blah blah" == 1)
is TRUE. Similarly,
("nichts" eq 0)
is FALSE, but
("nichts" == 0)
is TRUE.
-Original Message-
From: CDitty [mailto:[EMAIL PROTECTED
== is for numeric comparison
eq is for string comparison
hth
Jos
- Original Message -
From: "CDitty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 7:22 PM
Subject: == vs eq What's the difference?
> The subject pretty much says it all. Why do some if stateme
Change =~ to !~
Wags ;)
-Original Message-
From: Scott Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 10:17
To: [EMAIL PROTECTED]
Subject: execute if NOT true.
I am testing a string like so: if ($url =~ /maincat/) { block } but I
want to execute if it does
On Mon, 6 Aug 2001, CDitty wrote:
> The subject pretty much says it all. Why do some if statements only want
> to work with eq and others will work with ==?
== and != are only for compating numerical values; eq and ne are used for
comparing string values.
That's what the difference is.
-- Bre
The subject pretty much says it all. Why do some if statements only want
to work with eq and others will work with ==?
Thanks
CDitty
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
$num=(int(rand 35));
There is probably a more random way to do it, but this is what i know...
-Original Message-
From: Mark Rowlands [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 2:59 AM
To: .; Beginners (E-mail)
Subject: Re: Random Number Generation
On Saturday 04 August
you should use "/" instead of "\" for pattern match.
-Original Message-
From: Aza Lsaja [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 6:38 AM
To: [EMAIL PROTECTED]
Subject: how to matching pattern of a scalar?
Hello,
I make a program which need to matching pattern of a scalar
You were close!
$url !~ /maincat/
-Original Message-
From: Scott Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: execute if NOT true.
I am testing a string like so: if ($url =~ /maincat/) { block } but I
want to execute if it d
I am testing a string like so: if ($url =~ /maincat/) { block } but I
want to execute if it does NOT find maincat. How would I do that?
Could I use a ! in front of the =
thanks
-Scott
Hello
Anyone know where to get Perl2exe or something similar for Windows
NT/Perl5.6 ?
I downloaded the trial version from www.indigostar.com but now I want to buy
a license the site seems to be unavailable!
Thanks, M.
At 11:41 AM 8/6/01 -0400, Chris Rogers wrote:
>If your data is already in the format shown below as yearmonthday, then a
>standard sort would do just fine:
>
>@test =(20010327, 20001113, 20011225, 19991231, 20100115);
>foreach (sort @test)
Doh, I should have realized that this data also sorts asc
> Can someone tell me how I can break out of a foreach loop before the end?
Use the 'last' command. See
http://www.perldoc.com/perl5.6/pod/func/last.html for an explanation of how
to use it. It works for breaking out of any loop e.g. foreach, while,
until.
Best wishes,
Rachel
--
To unsu
> You are saying - "Report invalid characters unless there are alphabetical
characters in the string".
> But there are alphabetical characters in the string...
> You should have said - "Report invalid characters unless there are ONLY
> alphabetical characters in the string, from the beginning to t
I am looking for information dealing with HP UX 11.00 and PerMagicK . Does PerlMagicK
work with HP and if so what version of it should I download? Where is a good site to
get it at?
Thanks,
Russell
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks for the pointer!
I guess I was been going down the right path all along! :)
Knowing I was on the right track helped me figure out
why it wasn't evaluating correctly(!)
Turns out I wasn't chomp(ing) the input.
#
my $generic = ;
chomp $generic;
#
If your data is already in the format shown below as yearmonthday, then a
standard sort would do just fine:
@test =(20010327, 20001113, 20011225, 19991231, 20100115);
foreach (sort @test)
{
print "$_\n";
}
Output will be:
19991231
20010327
20011225
20100115
On the other hand, you may want a
> -Original Message-
> From: jp [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Perl equivalent of "case" or "switch" statements ?
>
>
>
> I've been searching through books and web resources
> but can't seem to find any reference to
I've been searching through books and web resources
but can't seem to find any reference to equivalent
of "case" or "switch" statements in Perl.
Is there such a thing in Perl?
(Every reference to the word "switch" leads me towards
things like -w etc...)
Thanks,
-jp
--
To unsubscribe, e
[Removed beginners-cgi list; this ha nothing to do with CGIs.]
At 04:24 PM 8/6/01 +0930, Daniel Falkenberg wrote:
>Does any one know the best way of sortig by YEAR MONTH DAY?
>
>I would like my script to dispalay 20010327 which is YEAR 2001 MONTH 10 and
>DAY 27
A little experimentation should co
Good eye. I guess I should try looking at the code in a terminal window the
next time I get this kind of bug.
Thanks.
- Original Message -
From: "Robert Lubej" <[EMAIL PROTECTED]>
To: "beginners perl" <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 1:06 AM
Subject: Re: href in CGI
>
Hi all,
I am using Joe Marzot's perl module 4.2.0. I am doing a walk of a
variable that returns a hex value. Problem is, I have no idea the value
will be hex, till I try to print it. 2 questions:
1. I think I could find a hex value by testing the returned value
against a regex. Yes/No
2. I want
Jeff Rouse/NCO/CEtv [[EMAIL PROTECTED]] quoth:
*>
*>Basically the process I wish to send a kill signal to is a redirector for
*>squid. The process is owned by the squid user. The kill signal makes the
*>redirector dump statistics about itself to a file. I want to run a script
*>from my cgi-bin
Works fine for me It prints a "1", just like it is supposed to.
Are you looking for some other behavior???
Brent
mail@redhotsw
make your life easy, use something like this:
$_ = 'foo@bar';
print "ILLEGAL!" if /[^a-zA-Z]/;
the ^ in side the character class says, everything NOT belonging to what's
in this class
it should be a bit faster then checking the entire string for sure.
hth,
Jos Boumans
- Original Message
At 03:05 PM 08/06/2001 +0530, [EMAIL PROTECTED] wrote:
>hi
>I am facing a problem while trying to connect toSQL Server Database
>but my code does not even trigger a request to the database ( according to
>log files)
>
>My code is below, What is the problem ?
>Is it regarding to the code ?
>Or to
>
>
>I'm asking because the other way that I know about, isn't working in the
>following code segment:
>
> print <
>
>Check Out
>
> End_link2
>
There is (or at least i see it) a space before "End_link2". The ending
string must start at the beginning of the line.
--
To unsubscribe, e-mail: [
Carlos C.Gonzalez wrote:
>Hi everyone,
>
>Given the following code why does it print out "Valid chars in string."?
>In other words why does the space between "San" and "Jose" not make the
>if expression true?
>
>my $string = "San Jose";
>
>if ($string !~ /[a-zA-Z]/) {
> print "Invalid charact
--On Montag, 06. August 2001 17:38 +0700 Aza Lsaja <[EMAIL PROTECTED]>
wrote:
> Hello,
> I make a program which need to matching pattern of a scalar.
> I write it as:
>
> $list = $find =~ \/$scalar\;
>
> but, i get error when execute it as:
> "Search pattern not terminated at line 12"
>
> then
try this
$list = $find =~ /$scalar/;
Rajeev
-
A little bit added to what you've already got gives you a little bit
more.-P.G. WOODHOUSE
- Original Message -
From: "Aza Lsaja"
Hello,
I make a program which need to matching pattern of a scalar.
I write it as:
$list = $find =~ \/$scalar\;
but, i get error when execute it as:
"Search pattern not terminated at line 12"
then how i matching a scalar variable?
Regards,
Aza
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
hi
I am facing a problem while trying to connect toSQL Server Database
but my code does not even trigger a request to the database ( according to
log files)
My code is below, What is the problem ?
Is it regarding to the code ?
Or to that of the settings made before the code is executed ( i.e cop
On Mon, Aug 06, 2001 at 02:05:00PM +0930, Daniel Falkenberg wrote:
> I have the number '08' and I want to serch for the '0' and repalce with
> nothing '' being left with only '8'.
If all you have is '08' you don't need a regular expression to strip off the
0, and a regex would be a bit of overkil
On Saturday 04 August 2001 18:35, . wrote:
> Another thing that I notice the llama book fails to mention is random
> number generation. Is this possible in Perl? (More specifically in a CGI
> script.)
could also look at Math::TrulyRandom or Math::Random
--
To unsubscribe, e-mail: [EMAIL PROTE
perldoc -f caller
perldoc Carp.pm
http://search.cpan.org/search?mode=module&query=assert
> Hello Every Body,
>
> I need some help.
> I am using a sub routine to log all the messages to be used for
debugging
> purpose.
> ie. &debugLogger($debug_message);
> Since very similare kind of messages are
Hi,
Any free links for Perl regular expressions, kindly provide me !!!
Thanks
SureshA
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello Every Body,
I need some help.
I am using a sub routine to log all the messages to be used for debugging
purpose.
ie. &debugLogger($debug_message);
Since very similare kind of messages are genrated at serveral places, I add
the function name.
i.e., &debugLogger("inside x \n $debug_messa
95 matches
Mail list logo