ActiveState Perl Install Location

2012-12-22 Thread Mike Flannigan
t's still 5.8.0. I did a search for 'active' and '16.1' and 'Perl' and 'bin', but can't find it anywhere. I also checked the documentation for install location, but didn't find it. This is on Win7. I just found at this location: http://tinyu

Re: Proc::PID::File - non-default location

2012-03-28 Thread Mendor
On 03/27/2012 05:39 PM, Steve Bertrand wrote: On 2012-03-27 08:36, Mendor wrote: Hello, I'm trying to write some daemon application using Proc::Daemon and Proc::PID::File modules. But I've encountered that Proc::PID::File crashes when I'm trying to put lockfile to a non-defaul

Re: Proc::PID::File - non-default location

2012-03-27 Thread Steve Bertrand
On 2012-03-27 08:36, Mendor wrote: Hello, I'm trying to write some daemon application using Proc::Daemon and Proc::PID::File modules. But I've encountered that Proc::PID::File crashes when I'm trying to put lockfile to a non-default location. E.g. the part of code: my $pid =

Proc::PID::File - non-default location

2012-03-27 Thread Mendor
Hello, I'm trying to write some daemon application using Proc::Daemon and Proc::PID::File modules. But I've encountered that Proc::PID::File crashes when I'm trying to put lockfile to a non-default location. E.g. the part of code: my $pid = Proc::PID::File->new(dir => &

Re: How to determine web user's location

2010-09-20 Thread Ask Bjørn Hansen
On 9/15/10 14:37, Mimi Cafe wrote: I just found few cpan modules (Geo::IP2Location, Geo::IP) which both use flat file databases to lookup country an IP is originating from, but I yet to understand how the originating city can be determined. Any other suggestions? Maxmind (who makes the databas

Re: How to determine web user's location

2010-09-15 Thread Jon Hermansen
87.239"); http://search.cpan.org/~location/Geo-IP2Location-2.10/lib/Geo/IP2Location.pm On Wed, Sep 15, 2010 at 2:37 PM, Mimi Cafe wrote: > > Hi > > I need to automatically determine web users' location and provide them with > targeting products. I am aware I can capture

How to determine web user's location

2010-09-15 Thread Mimi Cafe
Hi I need to automatically determine web users' location and provide them with targeting products. I am aware I can capture their IP address and do DNS lookup of some kind, but how do I find their country and city from the DNS information. Recently I noticed that some of the web sites I

RE: Location of Perl libraries

2010-05-27 Thread Bob McConnell
y > know how to use @INC. My question was about "normal", > "standard", or "best" practice for placement of scripts > and Perl libraries on Windows. The default setup for > ActiveState is to put site-specific stuff into > c:\Perl\site\lib. I would rathe

Re: Location of Perl libraries

2010-05-27 Thread Eric Veith1
s on Windows. The > default setup for ActiveState is to put site-specific stuff into c: > \Perl\site\lib. I would rather use a location on the network, mapped > to a network drive. I know how to do that, I just want to know if > Windows people would find that weird or objectionable.

Re: Location of Perl libraries

2010-05-26 Thread Marilyn Sander
lains about @INC. I already know how to use @INC. My question was about "normal", "standard", or "best" practice for placement of scripts and Perl libraries on Windows. The default setup for ActiveState is to put site-specific stuff into c:\Perl\site\lib. I w

Re: Location of Perl libraries

2010-05-26 Thread Shawn H Corey
On 10-05-26 05:41 PM, Marilyn Sander wrote: What would be the preferred practice here? See `perldoc lib` -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. The secret to great software: Fail early & often.

Location of Perl libraries

2010-05-26 Thread Marilyn Sander
x27;m much more accustomed to UNIX/Solaris/Linux and to having automounted directories for software. I would like to put these Perl scripts and modules on a network drive, and have all the build machines (which I control fully) map the same drive to the location of the libraries. The drive would

Re: How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Chap Harrison
Whoof! Thanks, Shlomi - I guess Copy-Recursive has what I need. I had no idea it would be such a can of worms. Chap On May 23, 2010, at 10:57 PM, Shlomi Fish wrote: > Hi Chap, > > On Monday 24 May 2010 04:09:52 Chap Harrison wrote: >> Hi, >> >> I can't believe I'm having such a hard time wi

Re: How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Shlomi Fish
Hi Chap, On Monday 24 May 2010 04:09:52 Chap Harrison wrote: > Hi, > > I can't believe I'm having such a hard time with this. I just want a > platform-independent way of copying a directory 'A' and its contents into > another directory 'B' (as a subdirectory of B, named A). Not crossing > files

Re: How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Owen
On Sun, 23 May 2010 20:09:52 -0500 Chap Harrison wrote: > Hi, > > I can't believe I'm having such a hard time with this. I just want a > platform-independent way of copying a directory 'A' and its contents > into another directory 'B' (as a subdirectory of B, named A). Not > crossing filesyste

How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Chap Harrison
Hi, I can't believe I'm having such a hard time with this. I just want a platform-independent way of copying a directory 'A' and its contents into another directory 'B' (as a subdirectory of B, named A). Not crossing filesystems or devices. Various online sources have said you copy directori

Re: data and script in same location, how to write it down

2008-12-14 Thread John W. Krahn
Chas. Owens wrote: On Sun, Dec 14, 2008 at 11:41, Mr. Shawn H. Corey wrote: snip open my $fh, '<', $file or die "cannot open $file: $!\n"; snip Completely off topic, but I dislike the error messages that say "cannot". "Cannot" implies that the problem exists currently and can cause confusion

Re: data and script in same location, how to write it down

2008-12-14 Thread Chas. Owens
On Sun, Dec 14, 2008 at 11:41, Mr. Shawn H. Corey wrote: snip > open my $fh, '<', $file or die "cannot open $file: $!\n"; snip Completely off topic, but I dislike the error messages that say "cannot". "Cannot" implies that the problem exists currently and can cause confusion when someone goes to

Re: data and script in same location, how to write it down

2008-12-14 Thread Chas. Owens
On Sun, Dec 14, 2008 at 11:36, Anirban Adhikary wrote: > Just write the fiilename as us script and file to open are in same location. > my $filename="datafile.txt "; > open my $FH,'<', $filename || die "no such files $!\n"; snip That needs to be ope

Re: data and script in same location, how to write it down

2008-12-14 Thread Mr. Shawn H. Corey
On Sun, 2008-12-14 at 22:21 +0800, itshardtogetone wrote: > Hi, > I wish to open a file datafile.txt which is stored in the same location as > the perl script, so how do I write it down? > > open (FILE,'<'," ") || di

Re: data and script in same location, how to write it down

2008-12-14 Thread Anirban Adhikary
Just write the fiilename as us script and file to open are in same location. my $filename="datafile.txt "; open my $FH,'<', $filename || die "no such files $!\n"; Regards Anirban Adhikary. On Sun, Dec 14, 2008 at 7:51 PM, itshardtogetone < itshardtoget...@ho

data and script in same location, how to write it down

2008-12-14 Thread itshardtogetone
Hi, I wish to open a file datafile.txt which is stored in the same location as the perl script, so how do I write it down? open (FILE,'<'," ") || die "no such files $!\n"; -- To unsubscribe, e-mail: beginners-un

Re: Module location - auto vs elsewhere

2008-11-28 Thread Dermot
2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: > From: Dermot <[EMAIL PROTECTED]> >> 2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: >> > From: Dermot <[EMAIL PROTECTED]> >> >> > >> > Yes there is something special. The loadable object (.so for unix, >> > .dll for windows) for >> > /.../perl/lib/My

Re: Module location - auto vs elsewhere

2008-11-27 Thread Jenda Krynicky
From: Dermot <[EMAIL PROTECTED]> > 2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: > > From: Dermot <[EMAIL PROTECTED]> > > > > > Yes there is something special. The loadable object (.so for unix, > > .dll for windows) for > > /.../perl/lib/MyApp2.pm > > is looked up in > > /.../perl/lib/auto/MyA

Re: Module location - auto vs elsewhere

2008-11-27 Thread Dermot
2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: > From: Dermot <[EMAIL PROTECTED]> > > Yes there is something special. The loadable object (.so for unix, > .dll for windows) for > /.../perl/lib/MyApp2.pm > is looked up in > /.../perl/lib/auto/MyApp2/MyApp2.so > > In either case you'd better insta

Re: Module location - auto vs elsewhere

2008-11-27 Thread Jenda Krynicky
From: Dermot <[EMAIL PROTECTED]> > I am trying to copy an application from one server to another but have > hit a problem. > > I haven't completely honoured the file structure and I wonder if that > why I am getting a error from DynaLoader. The error is > > Can't load '/usr/local/lib/site_perl/My

Re: Module location - auto vs elsewhere

2008-11-27 Thread Dermot
2008/11/27 kevin liu <[EMAIL PROTECTED]>: > you might need to install relative library, in your case it is > '/usr/local/lib/site_perl/MyApp2.so', you can locate to that > directory to check if the library it there, if not, get the library > installed. I did install it. Well, I copied the MyApp.s

Module location - auto vs elsewhere

2008-11-26 Thread Dermot
Hi, I am trying to copy an application from one server to another but have hit a problem. I haven't completely honoured the file structure and I wonder if that why I am getting a error from DynaLoader. The error is Can't load '/usr/local/lib/site_perl/MyApp2.so' for module MyApp2: /usr/local/lib

Re: whats the location of my perl script

2008-10-19 Thread Chas. Owens
On Sun, Oct 19, 2008 at 08:51, Jeff Pang <[EMAIL PROTECTED]> wrote: > 2008/10/19 itshardtogetone <[EMAIL PROTECTED]>: >> Hi, >> What is the command to recall the drive location of my script? >> Thanks > > use Cwd; > see getcwd(); snip That will tell yo

Re: whats the location of my perl script

2008-10-19 Thread Jeff Pang
2008/10/19 itshardtogetone <[EMAIL PROTECTED]>: > Hi, > What is the command to recall the drive location of my script? > Thanks use Cwd; see getcwd(); -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

whats the location of my perl script

2008-10-19 Thread itshardtogetone
Hi, What is the command to recall the drive location of my script? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: how to run a script at remote location (windows-->linux)

2007-12-26 Thread Chas. Owens
On Dec 26, 2007 11:21 AM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > On Dec 26, 2007 3:08 AM, nandakishore saboo <[EMAIL PROTECTED]> wrote: > > > I would like to run perl script on linux machine from windows perl script. > > The most common way that people do that is when the Linux box is > running a

Re: how to run a script at remote location (windows-->linux)

2007-12-26 Thread Tom Phoenix
On Dec 26, 2007 3:08 AM, nandakishore saboo <[EMAIL PROTECTED]> wrote: > I would like to run perl script on linux machine from windows perl script. The most common way that people do that is when the Linux box is running a webserver (such as Apache) which in turn runs a CGI program written in Per

how to run a script at remote location (windows-->linux)

2007-12-26 Thread nandakishore saboo
Hi, I would like to run perl script on linux machine from windows perl script. Can any body help me out on this regard, is there any module which takes care of this? Thanks, snanda.

Re: Header ("Location")

2006-08-09 Thread WCJ d/b/a http://ccsh.us/
On 8/9/06, Umar Draz <[EMAIL PROTECTED]> wrote: > Please give me the link where i can read about that You can see a HTTP Response Code summary here: http://dw.ccsh.us/doku.php?id=http -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTE

Re: Header ("Location")

2006-08-09 Thread WCJ d/b/a http://ccsh.us/
On 8/9/06, Umar Draz <[EMAIL PROTECTED]> wrote: Please give me the link where i can read about that http://www.w3.org/Protocols/ http://www.ietf.org/rfc/rfc2616.txt http://search.cpan.org/perldoc?HTTP::Response http://www.anomaly.org/wade/projects/httptest/HTTPtest.html http://www.faqs.org/faqs

Re: Header ("Location")

2006-08-07 Thread WCJ d/b/a http://ccsh.us/
On 8/7/06, Umar Draz <[EMAIL PROTECTED]> wrote: In PHP i can use header ("Location: this.php?error=this_error"); Location: is standard HTTP. The trick is too make sure your application is truly talking HTTP. Please help me how i can use in Perl? In Perl, as a 'Her

Header ("Location")

2006-08-07 Thread Umar Draz
Hi Dear Members! In PHP i can use header ("Location: this.php?error=this_error"); Please help me how i can use in Perl? Regards, Umar Draz - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for

RE: Can any one tell me a better way to upload a file from the HTML form to a location in my home directorrt.

2006-04-07 Thread Moon, John
, April 06, 2006 5:45 AM To: beginners@perl.org Subject: Can any one tell me a better way to upload a file from the HTML form to a location in my home directorrt. I tried many ways, Though I am seeing the file. the SIZE IS 0. I tried out these ways First One = my $upload_file= $q

Re: Can any one tell me a better way to upload a file from the HTML form to a location in my home directorrt.

2006-04-06 Thread JupiterHost.Net
Anish Kumar K. wrote: I tried many ways, Though I am seeing the file. the SIZE IS 0. I tried out these ways use the upload() info in CGI.pm's POD, be sure to do it befpre any headers are output :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Can any one tell me a better way to upload a file from the HTML form to a location in my home directorrt.

2006-04-06 Thread Dr.Ruud
Anish Kumar K. schreef: > I tried many ways, Though I am seeing the file. the SIZE IS 0. Maybe this helps: http://perlmeme.org/tutorials/cgi_upload.html -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Can any one tell me a better way to upload a file from the HTML form to a location in my home directorrt.

2006-04-06 Thread Anish Kumar K.
I tried many ways, Though I am seeing the file. the SIZE IS 0. I tried out these ways First One = my $upload_file= $q->param('upload_file'); # This is the description file which is being uploaded if ($upload_file) { my $outfile="/home/anish/testing.doc"; open(OUTFILE,">$outf

Re: print to a specific location in a file

2005-08-01 Thread John W. Krahn
Brian Volk wrote: > > Is it possible to open a file and print to a specific location in the file? > For example, I have a 1K file and 0 - 511 is where the small description is > stored and starting in position 512 is the path to a pdf file If I do > not have the path in p

print to a specific location in a file

2005-08-01 Thread Brian Volk
Hi All~ Is it possible to open a file and print to a specific location in the file? For example, I have a 1K file and 0 - 511 is where the small description is stored and starting in position 512 is the path to a pdf file If I do not have the path in position 512 the link will be broken on

RE: print to a specific location in a file

2005-08-01 Thread Brian Volk
-Original Message- From: Brian Volk Sent: Monday, August 01, 2005 11:03 AM To: Beginners (E-mail) Subject: print to a specific location in a file Hi All~ Is it possible to open a file and print to a specific location in the file? For example, I have a 1K file and 0 - 511 is where

Re: How to find regex at specific location on line

2005-01-25 Thread Jay
On Tue, 25 Jan 2005 14:39:42 -0500, renard <[EMAIL PROTECTED]> wrote: > I am a newbie and have been following this thread since I am interested in > benchmarking. > > So I copied the code and ran it on my machine. I have a 3.5 MHz system > runing Windows XP. I am using ActivePerl 3.8.6. > > On my

Re: How to find regex at specific location on line

2005-01-25 Thread renard
_3 4672897/s 65% 3% -- -6%-7%-50% -57% plain_substr4960317/s 75% 73% 6% ---1%-47% -54% substr_regex_1 500/s 77% 74% 7% 1% ---46% -5

Re: How to find regex at specific location on line

2005-01-24 Thread Jay
On Mon, 24 Jan 2005 10:46:38 -0500, Dave Gray <[EMAIL PROTECTED]> wrote: > > 'plain_regex'=> sub { if ( $string =~ /^.{38}\|[BNPG]\|/ ) { > > my $a = $_ } }, > > 'plain_regex'=> sub { if ( $string =~ /^.{38}\|N\|/ ) { my $a = $_ > > } }, > > > > What was interesting to me was that

RE: How to find regex at specific location on line

2005-01-24 Thread Graeme St. Clair
Perl Beginners Subject: Re: How to find regex at specific location on line Graeme St. Clair wrote: > Try the {} notation, that says how many whats are required before the > which (as it were). Perhaps something like:- > > if (/.{31,33}\|[BNPG]\|/){ > return 2; >

RE: How to find regex at specific location on line

2005-01-24 Thread Jason Balicki
Thanks to everyone that answered this question. I ended up using (/^.{30}\|[BNPG]\|/). I plan on adding some more checks for "|" at specific locations (other than just ^ and $, which I have now) for sanity's sake. Thanks again. Would it be helpful to others if I were to post the complete script

Re: How to find regex at specific location on line

2005-01-24 Thread Dave Gray
> 'plain_regex'=> sub { if ( $string =~ /^.{38}\|[BNPG]\|/ ) { > my $a = $_ } }, > 'plain_regex'=> sub { if ( $string =~ /^.{38}\|N\|/ ) { my $a = $_ } > }, > > What was interesting to me was that although, predictably, the > substring/regex combo was consistently the best perform

Re: How to find regex at specific location on line

2005-01-23 Thread Jay
here is a set of benckmarks for a couple of different variations on the theme, including regexing the entire line for the pattern, regexing the pattern at a known location, and some substring and substring/regex combos. for the heck of it, I also tried just looking for one character, rather than

Re: How to find regex at specific location on line

2005-01-22 Thread John W. Krahn
Graeme St. Clair wrote: Try the {} notation, that says how many whats are required before the which (as it were). Perhaps something like:- if (/.{31,33}\|[BNPG]\|/){ return 2; } Meaning, between 31 & 33 characters. Untested! No, that is not what it means. It means match

RE: How to find regex at specific location on line

2005-01-22 Thread Graeme St. Clair
ilto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 9:24 PM To: 'Perl Beginners List' Subject: How to find regex at specific location on line Hello, If you would, please consider the following input file: |6643|Jason Balicki | |0501211243|000:00:00|

Re: How to find regex at specific location on line

2005-01-22 Thread John W. Krahn
that will have other output.) If I can pin it to a specific location, it would at least be a little better. Is there a way that I can specify that that regex starts on a particular character on the line? Yes, two ways that I can think of: if ( substr( $_, 30, 3 ) =~ /\|[BNPG]\|/ ) {

How to find regex at specific location on line

2005-01-22 Thread Jason Balicki
the 31st, 32nd and 33rd characters on the line. This regex works, and has been in use for a couple of days now, but I'd like to be more explicit, especially since I can never be sure that another line of input won't contain that string (I am filtering from a serial port that will have oth

RE: save output as text file, move file to another location

2004-06-09 Thread Bob Showalter
Gregg O'Donnell wrote: > Greetings all! I have data that is output from a form. OK. I assume you mean an HTML form and your script is a CGI script. > How do I take > this data, save it as a .txt file, and place this .txt file in > another location (a different folder, not cgi-

save output as text file, move file to another location

2004-06-09 Thread Gregg O'Donnell
Greetings all! I have data that is output from a form. How do I take this data, save it as a .txt file, and place this .txt file in another location (a different folder, not cgi-bin) on my server? Also, each time a .txt file is created, it should "overwrite" the previous file ( I assu

RESOLUTION: Using CPAN.PM on Win32: How Direct to Proper Perl Location

2004-01-30 Thread mcdavis941
Hi, this message is to let you know the resolution of an issue I posted on 25 Jan 2004.  I post this for the benefit of anyone Googling on the relevent keywords. My original post listed an error message for a condition in which neither CPAN.pm, CPANPLUS.pm nor Makefile.PL (for multiple packages)

Using CPAN.PM on Win32: How Direct to Proper Perl Location

2004-01-25 Thread mcdavis941
ource code. It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distributio

Re: Module location

2003-10-16 Thread Bee
> Depens on the OS. > > You may send the PERL5LIB system variable to something. > > If you happen to use ActivePerl you may also add library directories > via the registry HKEY_LOCAL_MACHINE\Software\Perl. The values of > "lib", "sitelib", "lib-" and "sitelib-" > will be added to your @INC.

Re: Module location

2003-10-16 Thread Jenda Krynicky
d, while %INC holds the modules already loaded. > But now I am wondering something else Is that possible > to do anything so I can permanently add some more location > for lib locations else than lib and site/lib or use lib 'mypath' ? Depens on the OS. You may send the PE

Re: Module location

2003-10-16 Thread Bee
Thanks alot, %INC is another good stuff else than @INC I realize that's more informative than @INC. But now I am wondering something else Is that possible to do anything so I can permanently add some more location for lib locations else than lib and site/lib or use lib &#

Re: Module location

2003-10-16 Thread Jenda Krynicky
From: "Bee" <[EMAIL PROTECTED]> > Is there anyway to look up the current module's full path via > syntax or dollar sign vars ? use Mail::Sender; print $INC{'Mail/Sender.pm'}; HTH, Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are a

Module Location

2003-10-16 Thread Dan Muey
Is there a way to find module's location? Sure can: my @mod = (CGI LPW Mail::Sender); # if you could create @mod here dynamically # based on the use statements or name space hat'd be cool. for my $i(@INC) { for(@mod) { s/::/\//g; if(-e "

Module location

2003-10-16 Thread Bee
Hi all, Is there anyway to look up the current module's full path via syntax or dollar sign vars ? Thanks

RE: DynaLoader with nonstandard lib location

2003-08-28 Thread NYIMI Jose (BMB)
TED] Sent: Thursday, August 28, 2003 3:01 AM To: [EMAIL PROTECTED] Subject: DynaLoader with nonstandard lib location I'm trying to install a module (Image::Imlib2) which depends on DynaLoader being able to find an external C library. Normally, this wouldn't cause a problem but I'

Re: DynaLoader with nonstandard lib location

2003-08-28 Thread Tassilo von Parseval
> a system which I do not have root access on and thus must store the > both the module and the library it seeks in a nonstandard location. > The location for the module is working fine, as expected, but I have > yet to find a way to tell DynaLoader to look in the correct plac

DynaLoader with nonstandard lib location

2003-08-28 Thread Reid Beels
both the module and the library it seeks in a nonstandard location. The location for the module is working fine, as expected, but I have yet to find a way to tell DynaLoader to look in the correct place for the library. I have tried adding push(@DynaLoader::dl_library_path, '/home/lwire

Re: determining location of character in array....

2003-01-17 Thread Rob Dixon
Mike Liss wrote: > Hello, > > Is there an easy way to get the location of a specific instance of a > character > in an array? > > for example: > > $MyArray = "This is the test"; > > I would like to know the index of the first occurence of the letter

RE: determining location of character in array....

2003-01-16 Thread Toby Stuart
> -Original Message- > From: Liss, Mike [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 10:21 AM > To: [EMAIL PROTECTED] > Subject: determining location of character in array > > > Hello, > > Is there an easy way to get the locati

Re: determining location of character in array....

2003-01-16 Thread Jenda Krynicky
From: "Liss, Mike" <[EMAIL PROTECTED]> > Is there an easy way to get the location of a specific instance of a > character in an array? > > for example: > > $MyArray = "This is the test"; > > I would like to know the index of the first

Re: determining location of character in array....

2003-01-16 Thread Paul Johnson
On Thu, Jan 16, 2003 at 03:21:13PM -0800, Liss, Mike wrote: > Is there an easy way to get the location of a specific instance of a > character in an array? > > for example: > > $MyArray = "This is the test"; > > I would like to know the index of the fir

RE: determining location of character in array....

2003-01-16 Thread Mark Anderson
> Is there an easy way to get the location of a specific instance of a > character in an array? > > for example: > >$MyArray = "This is the test"; > > I would like to know the index of the first occurence of the letter "h" ( 1 perldoc -f index

determining location of character in array....

2003-01-16 Thread Liss, Mike
Hello, Is there an easy way to get the location of a specific instance of a character in an array? for example: $MyArray = "This is the test"; I would like to know the index of the first occurence of the letter "h" ( 1 ) Thanks Mike

Re: < a very novice > file location

2002-12-05 Thread Jenda Krynicky
Date sent: Thu, 05 Dec 2002 12:56:14 -0500 From: "Sam Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject:< a very novice > file location > I m very new to perl, please notice the errors I

Re: < a very novice > file location

2002-12-05 Thread Rob Dixon
quot;Sam Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 5:56 PM Subject: < a very novice > file location > I m very new to perl, please notice the errors I am including and tell > me how simple it is to correct them :) > > >

< a very novice > file location

2002-12-05 Thread Sam Harris
I m very new to perl, please notice the errors I am including and tell me how simple it is to correct them :) I have MD5.pm and Std.pm to be used in a directory above the one where perl is, my script gives me an error that says # ./net_watch ../net_watch[2]: use: not found ../net_watch[3]: u

Re: Files at different location

2002-11-06 Thread Paul Johnson
dan said: > well i could spend ample amount of time testing code for someone else. > like everyone else here, i'm only offering suggestions on how a problem > can be overcome. seriously, if someone is trying to create a perl > script, they'll have at least some knowledge in perl on how to fix > er

Re: Files at different location

2002-11-05 Thread LRMK
use this open (FILE _HANDDLE,'>c:\abc\abc.abc'); - Original Message - From: "Ankit Gupta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 5:07 AM Subject: Files at different location > Hi, > > I have wr

Re: Files at different location

2002-11-05 Thread LRMK
use this open (FILE _HANDDLE,'>c:\abc\abc.abc'); - Original Message - From: "Ankit Gupta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 5:07 AM Subject: Files at different location > Hi, > > I have wr

Re: Files at different location

2002-11-05 Thread dan
786.qmail@;onion.perl.org... > >> Hi, > >> > >> I have written script that makes lot of files but the problem is that > >> my > >> script stores all the files at the location from where the script is > >> run. > > I > >> have tri

Re: Files at different location

2002-11-05 Thread Paul Johnson
g. Might I suggest testing next time ;-) > "Ankit Gupta" <[EMAIL PROTECTED]> wrote in message > news:20021105140731.2786.qmail@;onion.perl.org... >> Hi, >> >> I have written script that makes lot of files but the problem is that >> my >> scri

Re: Files at different location

2002-11-05 Thread dan
<[EMAIL PROTECTED]> wrote in message news:20021105140731.2786.qmail@;onion.perl.org... > Hi, > > I have written script that makes lot of files but the problem is that my > script stores all the files at the location from where the script is run. I > have tried usingt chdir("

Files at different location

2002-11-05 Thread Ankit Gupta
Hi, I have written script that makes lot of files but the problem is that my script stores all the files at the location from where the script is run. I have tried usingt chdir("c:\abc") in order to store all the files in abc directory but its of no use and still it stores files in the

Re: How can I get element location in array ?

2002-07-13 Thread Connie Chan
> Have you considered putting your data in a hash instead of an array? > > -- > felix YES, I do. And so I post another thread for "Any warning if I use '03E9' like string as a key in hash." That is about the story of why I ask that. @array = ('b855=cdf2', 'a456=d5c9', 'a454=c8fd', 'a457=c9cf', '

Re: How can I get element location in array ?

2002-07-13 Thread Felix Geerinckx
on Fri, 12 Jul 2002 21:14:19 GMT, Connie Chan wrote: > Right, I better set $GetLocation = -1, but, what I am looking for > is if there is something working like grep does ? > > @elemLoc = grepIndex (/pattern/, @list); # something like that ? > > And is that I can't aviod to use loop to search f

Re: How can I get element location in array ?

2002-07-12 Thread Connie Chan
From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Connie Chan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, July 13, 2002 4:54 AM Subject: Re: How can I get element location in array ? > On Jul 13, Connie Chan said: > > &

Re: How can I get element location in array ?

2002-07-12 Thread Jeff 'japhy' Pinyan
On Jul 13, Connie Chan said: >I now have an array like this : @list = ('1234', '4567', '789A', 'BCDE', >'FGHI', .); > >and now, I want to find where is the location of 'BCDE' in list , so I >write like this : > &

How can I get element location in array ?

2002-07-12 Thread Connie Chan
Hi all, I now have an array like this : @list = ('1234', '4567', '789A', 'BCDE', 'FGHI', .); and now, I want to find where is the location of 'BCDE' in list , so I write like this : my @list = ('1234', '4567&#

RE: Location of SendMail

2002-04-10 Thread James Kelty
http://www.indigostar.com/sendmail.htm -James -Original Message- From: @fro @ndy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 2:51 PM To: [EMAIL PROTECTED] Subject: Location of SendMail Hello, I am running Apache HTTP Server Version 1.3 on my Windows 2000 Professional PC

Re: Location of SendMail

2002-04-09 Thread Elaine -HFB- Ashton
@fro @ndy [[EMAIL PROTECTED]] quoth: *> *>My friend said that you cant use sendmail on a Windows machine so i am asking if this is true. If it is true are there any sendmail programs out there that would work with my current OS? Not true but you'd have to install it and, as I recall, it's a com

Location of SendMail

2002-04-09 Thread @fro @ndy
Hello, I am running Apache HTTP Server Version 1.3 on my Windows 2000 Professional PC with ActiveState Perl. I was wondering if anyone knew where my SendMail program would be located? My friend said that you cant use sendmail on a Windows machine so i am asking if this is true. If it is true

Re: Searching for words in a specific location

2002-02-28 Thread Steven M. Klass
Hi all, That only seems to grab the first one. I also have comments(denoted by * foobar) and white space lines, and other .BAR where .BAR is any number of things I want to ignore. sub GetSchCellName { my ($SchCell, $strName, @SchCells, %seen); my $SchDesign = $_[0]; print ".. Examinin

Re: Searching for words in a specific location

2002-02-28 Thread Jeff 'japhy' Pinyan
On Feb 28, Jeff 'japhy' Pinyan said: >And then extracting the first chunk of non-whitespace after ".SUBCKT": > > push @names, /^\.SUBCKT\s+(\S+)/; Sorry, that regex should have an /m modifier on it. push @names, /^\.SUBCKT\s+(\S+)/m; >} > } > close FILE; -- Jeff "japhy" Pinyan

Re: Searching for words in a specific location

2002-02-28 Thread Jeff 'japhy' Pinyan
On Feb 28, Steven M. Klass said: >I want to create an array of names I don't yet know. Basically I have a >text file that does this > >.SUBCKT FOO blah blah >blah >blah >.ENDS > >.SUBCKT BAR blah blah >blah >blah >.ENDS > >I want my array to capture FOO BAR I'd suggest using "\n.ENDS\n" as yo

Searching for words in a specific location

2002-02-28 Thread Steven M. Klass
Hi all I want to create an array of names I don't yet know. Basically I have a text file that does this ..SUBCKT FOO blah blah blah blah ..ENDS ..SUBCKT BAR blah blah blah blah ..ENDS I want my array to capture FOO BAR I am not sure how to do this.. Thanks so much -- Steven

Re[2]: Interpolate in Location:

2001-12-21 Thread K.L. Hayes
[mailto:[EMAIL PROTECTED]] >> Sent: Thursday, December 20, 2001 7:34 PM >> To: [EMAIL PROTECTED] >> Subject: Interpolate in Location: >> >> >> Hello All, >> >> Could somebody please help me with this? >> >> >> print "Location: &g

RE: Interpolate in Location:

2001-12-21 Thread Bob Showalter
> -Original Message- > From: K.L. Hayes [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 20, 2001 7:34 PM > To: [EMAIL PROTECTED] > Subject: Interpolate in Location: > > > Hello All, > > Could somebody please help me with this? >

Re[2]: Interpolate in Location:

2001-12-20 Thread K.L. Hayes
es wrote: >> >> print "Location: >https://secure.whatever.com/business=email\@address.com\&item_name=Product+Name\&item_number=QX000\&amount=$total_amount\&shipping=0.00\&return=https://blah.com/ty.html\n\n";; >> >> >> I'm tr

  1   2   >