Re: interpolated strings

2004-03-30 Thread Adam
Bryan, I'm no pro, but I can help a bit. You interpolate variables in a double-quote "". my($name) = 'Adam'; print("My name is $name\n"); # Prints `My name is Adam` with a return at the end. or more to your question my($name); chomp($n

Re: How to determine if STDIN has piped data?

2004-04-03 Thread Adam
ing a file with 3-lines of test text in a file named `sample.txt`. sample.pl sample.txt Script: Test-1 Script: Test-2 Script: Test-3 You could also use the following command `cat sample.txt | sample.pl`. As we say in Philly, you feel me dog? Regards, Adam ** Back ticks are not part of the actual

Re: determining size of array through reference

2004-04-09 Thread Adam
e from the reference. print ("The array's size is " . @de_ref . "!\n"); There is probably a better way, but I'm a newb so I don't know. Cheers, Adam On Apr 6, 2004, at 7:40 PM, Andrew Gaffney wrote: I've got an array reference and I'm trying to figure o

Re: Avoiding using temporary files

2004-04-14 Thread Adam
Richard, I wouldn't look to use a temporary file. In stead push your output into an array then iterate through the array on your second pass. I would expect you to get better performance as you won't have to worry about disk I/O. Regards, Adam On Apr 13, 2004, at 4:55 AM, Bar

Re: Any wrong?

2004-05-30 Thread Adam
s error because there isn't a file named `nlexample` or `fish` in the current directory where the program is. Regards, Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Using Perl on a UNIX box where you have no ADMIN rights....

2004-07-01 Thread Adam
l's documentation for instructions on setting shell variables. Using BASH this is how I would set this variable (I use BASH): export PERLIB5='/users/my_home_dir/perl-lib'; After you do all this you can deploy modules to your personal library and use them from there. Regards, Ada

Re: Regex for numbers and text (ANS)

2004-07-12 Thread Adam
his syntax is fairly noisy. As an alternative, try using split() Something along the lines of: #! /usr/bin/perl use strict; # UN-TESTED my ($value, @parsed); $value = "adam 1.2 2.2 3.2 wed"; @parsed = split(/\s+/, $value); print "$_\n" for (@parsed); Unless

Re: Pattern Matching records from a table query.

2004-07-17 Thread Adam
me commands to do this, or at least point me in the right > direction. Any suggestions? Yea, use a pipe delimited file. Regards, Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

How may anonymous tables?

2004-10-05 Thread adam
Here is the code: my $r1 = [1,2]; my $r2 = [1,2]; How many anonymous arrays do we have now? One or two? This shows we have two arrays: print "$r1\n$r2\n"; Is there any way to find out how the system is naming these arrays internally? thanks adam -- To unsubscribe, e-ma

References to anon array

2004-10-05 Thread Adam
I am expecting in both examples the same result: Example1: the same references Example2: the same references However, I get: Example1: different references Example2: the same references What am I missing? thanks adam Here is the code: #Example1 my $r1 = [1, 3]; my $r2 = [1, 3]; if ($r1 eq $r2

Global variables / special variables / variable identifier with just one character

2004-10-08 Thread Adam
] = "test"; } Does it mean - that in general - we should not use one character variables in Perl? thanks adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Formatting the decimals

2004-01-29 Thread Adam
Owen is dead on, but I think we can do that with less code. Try something like: printf ("%0.2f\n", $_) while (<>); Regards, Adam On Jan 29, 2004, at 5:25 AM, Owen Cook wrote: On Thu, 29 Jan 2004, Mallik wrote: How do I format the decimals, i.e, if there is no decimal part,

Re: Zip using Perl

2004-01-29 Thread Adam
ie("Cannot find file `$file_nm`.\n"); # Zip the file. print("Trying file name '$file_nm.zip'"); system("zip '$file_nm.zip' '$file_nm'"); Regards, Adam Does the file's name contain spaces? On Jan 29, 2004, at 1:24 AM, Owen wrote: On We

How do you create a Hyperlink field in an MS Access table?

2001-06-21 Thread Adam Dudsic
d whose data type is Hyperlink, I must actually create a LONGCHAR field, then set some additional field attribute/property (dbHyperlink?) so that the contents of the field are treated as a Hyperlink. But how? Might this involve using some other module--a Win32 or som

How do you create a Hyperlink field in an MS Access table?

2001-06-21 Thread Adam Dudsic
d whose data type is Hyperlink, I must actually create a LONGCHAR field, then set some additional field attribute/property (dbHyperlink?) so that the contents of the field are treated as a Hyperlink. But how? Might this involve using some other module--a Win32 or som

Re: Perl Style Question

2001-06-26 Thread Adam Turoff
On Tue, Jun 26, 2001 at 06:05:15PM -0400, Gross, Stephan wrote: > Why is this style > > if ($x) { > do this; > do that; > } This style is also known as The One True Brace Style, popularized by Kernighan & Ritchie (in _The C Programming Language_). It's also popular with other languages

ENV & $HOME

2001-06-26 Thread Adam Theo
Hello, Adam Theo here; i am looking for a way my perl program can automatically get the home directory of the user. i have come accross the ENV module, and think it will work, but wish to know if it is a standard module with all perl distributions? linux, windows, mac, etc? also, what does

CVS?

2001-06-27 Thread Adam Theo
Hello, Adam Theo here; i am looking into setting up some sort of code management system for my website, and found CVS, but have one problem with it: is it only for C? i understand it can likely store any code language, but what about the merging and other functions of CVS? is that only for

Re-Mailer

2001-06-28 Thread Adam Theo
Hello, Adam Theo here; does anyone know of a script to 're-mail' emails? i have a bunch of 'saved' and 'archived' emails (in both Mozilla Inbox and RMAIL formats) stored on my local computer. i am looking for a script that will read these files, then re-send th

Re: module install

2001-06-29 Thread Adam Turoff
On Fri, Jun 29, 2001 at 11:31:28AM -0500, Hal Wigoda wrote: > > When you install a perl module from CPAN > should you do it as root??? That's the easiest way to do it. Another possibility is to install somewhere else on the file system, not in the system site_perl directory. That other direct

Re: module install

2001-06-29 Thread Adam Turoff
On Fri, Jun 29, 2001 at 12:10:04PM -0500, Hal Wigoda wrote: > I'm trying to install a module as root > from cpan > and it is looking for my ncftp program > and it is not found. > > What do i do now?? > > I'm using mandrake 7.2 on my linux server. You can install ncftp from your mandrake CDs, or

Artistic License 2.0

2001-06-30 Thread Adam Theo
Hello, Adam Theo here; i was wondering if the artistic license version 2.0 that i think is going to be used for Perl6 is finished? can it be effectively used as a standalone license, or should it be used in conjunction with the GPL again? if someone could point me to a webpage or email it to

Tk::After Error

2001-06-30 Thread Adam Theo
Hello, Adam Theo here; i have built a Tk program to act as a alarm clock. it was a while ago that i created it, and was pretty sure it was working, but now that i go back to it, it is giving this error when i press the button to stop the alarm: Tk::Error: Can't locate object m

-d & other file tests

2001-07-05 Thread Adam Theo
Hello, Adam Theo here; i was wondering if there is something i must declare to use file tests such as -d and -e? i have code which i am working on, and i need to check to see if a file is a directory. if it is, i run a subroutine. i recall having used file tests before, and successfully. i

Artistic License Essay

2001-07-28 Thread Adam Theo
Hello, all. I have put together a very rough draft of what I hope to be a very good introduction and description of Perl's Original Artistic License. I've just put it together using a variety of readily findable sources, and has not been refined at all at this point. I would like anyone here tha

Re: boolean logic - what am I doing wrong?

2001-08-02 Thread Adam Turoff
On Thu, Aug 02, 2001 at 12:51:55PM -0400, Ron Woodall wrote: > Hi All: > > A bit of a conundrum here. > > while (attlist[$x] =~ m|

Re: Remove White Space

2001-08-06 Thread Thomas Adam
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 >

Re: Deleting leading/trailing whitespace

2001-08-08 Thread Adam Turoff
On Wed, Aug 08, 2001 at 02:24:39PM -0500, Mooney Christophe-CMOONEY1 wrote: > > From: Sudarsan Raghavan [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 08, 2001 1:48 PM > > To: Sophia Corwell > > Cc: [EMAIL PROTECTED] > > Subject: Re: Deleting leading/trailing whitespace > > > > > > ($temp)

Re: Perl equivalent to awk's 'getline'

2001-08-09 Thread Adam Turoff
On Thu, Aug 09, 2001 at 11:35:13AM -0500, Frank Newland wrote: > Readers: > awk has a function called 'getline' which reads the next line of input > without changing control of the script. Perl is unlike sed and awk in this respect; program control is not determined by reading sequential lines

Re: Best Practices: Error Handling???

2001-08-14 Thread Adam Turoff
On Tue, Aug 14, 2001 at 09:04:06AM -0500, David Simcik wrote: > I've been perusing the Camel book, the Cookbook, CGI Programming w/Perl, and > Effective Perl for answers to this question, but have yet to find one or two > definitive solutions. I've seen the standard die/eval() statements and the >

getting values from a called subroutine

2001-05-08 Thread Adam Theo
routine, and get *back* info, instead of just sending it. so, in short, any way i can get a subroutine to send *back* arguments to the piece of code that called it? all of this will be within the same program, i just am hoping there is a way to do this. thanks all. -- /\--- Ada

Re: getting values from a called subroutine

2001-05-09 Thread Adam Theo
t in that order, though). -- /\--- Adam Theo --- //\\ Theoretic Solutions (www.Theoretic.com) /\ Software, Politics, and Advocacy /--||--\ email: [EMAIL PROTECTED] AIM: Adam Theo 2000 ||jabber: [EMAIL PROTECTED] ICQ: 3617306 || "Did you ever get the feeling th

connecting to other perl programs

2001-05-15 Thread Adam Theo
could help direct me. thanks. -- /\ --- Adam Theo --- //\\ Theoretic Solutions (www.Theoretic.com) /\ Software, Politics, and Advocacy /--||--\ email: [EMAIL PROTECTED] AIM: Adam Theo 2000 ||jabber: [EMAIL PROTECTED] ICQ: 3617306 || "Did you ever get the f

Re: ternary operator stability(e.g., in "case" statements)

2001-05-22 Thread Adam Turoff
On Tue, May 22, 2001 at 09:37:13AM -0700, Paul wrote: > Anybody know if there would likely be any problem with building a > "case" statement like the folowing (without installing Switch.pm)? > > sub rate ($) { > $_[0] eq 'A' ? .03 : > $_[0] eq 'B' ? .05 : > $_[0] eq 'C' ? .06 : >

Re: Perl Programming Question

2001-05-23 Thread Adam Turoff
On Wed, May 23, 2001 at 02:59:13PM -0500, Tom Yarrish wrote: > Hey all, > > Been reading the list for a little while, and had sort of a philosophy > question for the group. I've been trying to learn Perl for some > time (in fact, my company has offered to pay for me to take a Sun > course on it).

Re: Perl Programming Question

2001-05-23 Thread Adam Turoff
On Wed, May 23, 2001 at 03:32:18PM -0500, Tom Yarrish wrote: > Okay, in answer to your question, my background is mainly in > Network/System Administration. Starting on Windows systems, and then > moving into Unix/Linux systems after that. I've played around a bit with > VB and C++. I've never

Re: mail

2001-05-23 Thread Adam Turoff
On Wed, May 23, 2001 at 04:52:06PM -0400, Yacketta,Ronald J wrote: > Folks, > > I search CPAN and found a good deal of Mail packages, seeing that I am > frankly new > which of them would you recommend to use in a perl script that will be > sending a single > email at the completion of a set of ta

Re: Is there an alternative to #!/usr/bin/perl

2001-05-24 Thread Adam Turoff
On Thu, May 24, 2001 at 11:38:32AM +0100, Hobson, Neville wrote: > I'm writing perl scripts that will be distributed to locations where I > cannot gaurantee the location of perl. Is there a clean alternative to the > shebang with the specific perl path? Maybe using an environment variable to > loc

Re: Problems with split

2001-05-24 Thread Adam Turoff
On Thu, May 24, 2001 at 01:21:47PM +0100, Andy Roden wrote: > > Anyone help out... > > %router_tables is something like (1.1.1.1|cisco, 2.2.2.2|juniper etc) > > foreach $i (sort keys %router_tables) > { > next if ($i =~ "unknown"); > ($router_table{i},$router_type{$i}) = split(/

Alarm clock program published, website up, and open source mailing lists.

2001-05-25 Thread Adam Theo
Hello, Adam Theo here; Just to note, this is cross-posted to the Perl-XML and Beginners mailing lists, since i share the same message to both of them. sorry if this inconveniences anyone. I'd again like to thank everyone on these lists, especially: Mr McLean for his huge help

Re: Win32::API and Win32::GUI

2001-05-28 Thread Adam Turoff
On Sun, May 27, 2001 at 11:32:16PM -0700, Helio S. Junior wrote: > Is there anyone using one of these modules? > I would like to exchange information about > how to use them. You're likely to find people using those modules on <[EMAIL PROTECTED]>. For more information, see the archives at:

Re: DBI.pm on perl-5.6.0

2001-05-29 Thread Adam Turoff
On Tue, May 29, 2001 at 05:24:07PM +0400, kosta wrote: > Can I have DBI package installed on the following build of perl: > ActiveState perl-5.6.0, MSWin32-x86-multi-thread? Yes. You probably want to use ActiveState's PPM installation utility. At the command prompt, type 'ppm'. At the 'pp

Best Music Modules?

2001-05-31 Thread Adam Theo
are any modules for playing net radio stations or such. i am really only looking for stable modules at this time, but would look into "newly-released" ones. thanks. -- /\--- Adam Theo --- //\\ Theoretic Solutions (www.Theoretic.com) /\ Software, Politics, and Advoca

Re: Licensing (warning: plug included)

2001-06-03 Thread Adam Theo
Hello, all, Adam Theo here; i didn't catch the first half of this thread, just the posts from the last digest. on the matter of compiling perl: this is something i have also been wanting to look into, for the reason of speeding up my programs, and being able to distribute my programs to p

Re: XML sections ?

2001-09-19 Thread Adam Turoff
On Wed, Sep 19, 2001 at 04:33:18PM -0500, David Simcik wrote: > Hi! > A little off-topic I know, but since I'm using Perl for the script, well... > ;-) Anyways, I have an XML document and I want to use > (whatever its type is actually called) to keep some content from being > parsed by the

Re: Day of the month

2001-11-15 Thread Adam Turoff
On Thu, Nov 15, 2001 at 03:08:48PM -0500, Glenn Cannon wrote: > Now all I need is a way to work out the last day of the month. Most of them > should be easy, but that damn February... Find the first day of the next month (remember december/january rollover) and subtract one day: ## hacking ja

Re: "Shorthand"

2001-11-20 Thread Adam Turoff
On Tue, Nov 20, 2001 at 11:04:15AM -0800, A. Rivera wrote: > Is there a quicker way to write this..just curious.. > > $count=&SomeFunctionWitchReturnsaNumber; > $count=$count+1; $count = SomeFunctionWhichReturnsANumber() + 1; Z. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: OO Perl programming.

2001-11-28 Thread Adam Turoff
On Wed, Nov 28, 2001 at 04:54:53PM +0800, Terrence Chan wrote: > I'm new to OO Perl and I wonder if it is possible to implement Sigleton > pattern in OO perl. And how it is implemented. > > Any info/pointer is welcomed. Check out search.cpan.org for "singleton". You'll find this: http://search

Re: Question

2001-11-28 Thread Adam Turoff
On Wed, Nov 28, 2001 at 12:38:48PM -0500, [EMAIL PROTECTED] wrote: > Can anyone tell me why he/she will choice PERL over PHP? There are lots of reasons. The most important reason to use Perl instead of PHP is that Perl is useful in many areas - web programming as well as system administration a

Re: a beginners challenge

2001-11-28 Thread Adam Turoff
On Wed, Nov 28, 2001 at 08:19:26PM +0200, Zysman, Roiy wrote: > > Lets see who can write the most lean ,mean , elegant , powerful, poetic > > (but most important) _Shortest_, script that cleans from a directory > > files that are at least 3 days old. perl -e 'chdir(shift @ARGV); sleep(3*86_400);

Re: split and replace

2001-11-29 Thread Adam Turoff
On Thu, Nov 29, 2001 at 11:53:38AM -0500, Johnson, Shaunn wrote: > [sample] > > 2001q2 06 P92786 IEMMM01 1 6 > 2001q2 06 P92786 IEMMM01 1 8 > 2001q2 06 P56576 IEMFF01 1 23 > > [result] > > 2001q2 06 P92

Re: New at Perl

2001-12-01 Thread Adam Turoff
On Fri, Nov 30, 2001 at 04:41:04PM -0600, Smith, Laura J wrote: > I'm not sure how to ask this question since I am so new to thisbut here > goes. I am just learning Perl and my co-worker gave me a Perl program to go > over and see how it looks. I was wondering if there is any way to have the

Re: What's installed?

2001-12-11 Thread Adam Turoff
On Tue, Dec 11, 2001 at 11:46:50AM -0700, [EMAIL PROTECTED] wrote: > Hi, > I'm guessing this has been asked before, but is there a way to tell which > modules you have installed? My system guys are picky about new ones, so > I would like to know what we already have... The easiest thing to do is

Re: What is better

2001-12-11 Thread Adam Turoff
On Tue, Dec 11, 2001 at 02:05:14PM -0800, Lance Prais wrote: > I have a question and I was wondering if anyone had an opinion on it. I am > using a perl script to parse through a log file and if there is an error > found I need to send and email to someone.. > > I was thinking about calling an A

Re: Modules for creating graphics and images

2001-12-11 Thread Adam Turoff
On Tue, Dec 11, 2001 at 05:37:16PM -0500, Pankaj Warade wrote: > GlacierHi Group, > I had been working on generating graphic images (want to plot some graphs > like pie-chart, bar-graph). Is there any-way of getting this done in perl. > Came to know about GD module. Is there any other modules whic

Re: A Model for Perl-driven HTML/WML/XML Front-Ends???

2002-01-03 Thread Adam Turoff
On Thu, Jan 03, 2002 at 10:51:15AM -0500, David Simcik wrote: > I am currently trying to piece together a personal site for myself using > Perl, MySQL, and Apache (alas, no mod_perl yet). I would like to seamlessly > deliver content to both HTML and WML browsers, perhaps even going as far as > dep

Re: Return multiple arrays

2002-02-05 Thread Adam Turoff
On Tue, Feb 05, 2002 at 08:52:44AM -0700, Mike Garner wrote: > I have a subroutine that calls another > subroutine, passing one array to the second for processing. I need the > second sub to return 3 arrays to the first sub. I can't seem to get this > to workwell I can return the data fro

Testing a scalier for two possible values at once

2009-05-13 Thread Adam Jimerson
I need to test a scalier to see if its value is not two possibilities, because this test is being done inside a while loop I can not use an elsif statement without things getting ugly. I have tried it like this if ($scalier nq 'A') || ($scalier nq 'B') { but that just gave me a syntax error wh

Re: Reading a list of numbers from a file into a array

2008-10-29 Thread Adam Jimerson
Thanks for the help. "John W. Krahn" wrote: > vendion wrote: >> Hello I am having trouble finding the correct syntax for reading a >> list of numbers from a file, it is open and can read from it, I tried >> with >> while () { >> chomp; >> @some_array = $_; >> print "@some_array\n"; >> } > > my @

Re: Is there some IDE dedicated to perl?

2008-12-30 Thread Adam Jimerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sanket vaidya wrote: > > Instead of going for IDE It would be better to download Perl Interpreter & > use some editor. For Windows few editors are Crimson, Context, Perl Express > etc. I use Perl Express. > I played with Perl Express a bit and wasn'

Using hashes in a format

2009-01-18 Thread Adam Jimerson
I am working on a program that will act as a contact manager of sorts, it uses two hashes to store everything (although the second one is commented out because I am not ready to work with it). I am using the format function to display everything but I don't know how to get it to show the keys

Re: Using hashes in a format

2009-01-18 Thread Adam Jimerson
(Randal L. Schwartz) wrote: >>>>>> "Adam" == Adam Jimerson writes: > > Adam> my %phone_numbers = (); > ... > Adam> $phone_numbers{$_} #needs to print the keys of the hash for the > name, and Adam> values for the phone number so it will be li

Re: Using hashes in a format

2009-01-18 Thread Adam Jimerson
"John W. Krahn" wrote: > Adam Jimerson wrote: >> I am working on a program that will act as a contact manager of sorts, >> it uses two hashes to store everything (although the second one is >> commented >> out because I am not ready to work with it). I am us

Installing DBI

2004-03-09 Thread Adam Jacobson
ERL was too easy. What am I missing. Thanks Adam Jacobson

Installing DBI

2004-03-09 Thread Adam Jacobson
ERL was too easy. What am I missing. Thanks Adam Jacobson

Re: Installing DBI

2004-03-09 Thread Adam Jacobson
I thought about the binary vs. alpha option. Which is correct? - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "Adam Jacobson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 09, 2004 5:35 PM Subject: Re: Instal

Re: Installing DBI

2004-03-09 Thread Adam Jacobson
Thanks. I thought I checked this. it works now. - Original Message - From: "Daniel T. Staal" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Tuesday, March 09, 2004 6:44 PM Subject: Re: Installing DBI > --As of Tuesday, March 9, 2

smtp support attach?

2004-10-04 Thread Adam Saeed
could any one tell me that SMTP::Net support attachment, if yes how it could be to do so... thanks -- Allah Hafiz O! God Thy sea is so great and my boat is so small. Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.

auto dial

2004-10-06 Thread Adam Saeed
dear all, i want to dial automatically to phone through my PC getting numbers from text/etc. file. how could i do it in PERL. thanks Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.

Re: auto dial

2004-10-07 Thread Adam Saeed
posted it here to know how it could be done in Perl. which module should be use, is there any program similar to this one has been built or not. etc. thanks Adam, On Wed, 6 Oct 2004 23:32:51 -0400 (EDT), Chris Devers <[EMAIL PROTECTED]> wrote: > On Thu, 7 Oct 2004, Adam Saeed wrote: &g

Re: auto dial

2004-10-07 Thread Adam Saeed
enjoy it. I did'nt mean to get script from here, i posted here to get initial ideas to be purified and sharpened so problem statement and algo, must become clear. i.e a way should be seen to do this. Thanks again Adam On Thu, 7 Oct 2004 14:45:52 -0400 (EDT), Chris Devers <[EMAIL P

Re: auto dial

2004-10-07 Thread Adam Saeed
On Fri, 8 Oct 2004 03:53:55 +0600, Adam Saeed <[EMAIL PROTECTED]> wrote: > Hi Errin! > good tracking...! > lema hee hee.. i am in Pakistan...It would be a nice thing but., > phone calls will cost you $. > It would be a reasonable approach. if some others also w

script how to interactive mode in telnet

2004-10-21 Thread Adam Saeed
i have to type all by hand. instead i want it to write through my script.. ' any idea. thanks adam code attached: #! /usr/bin/perl -w print "Enter ip address where smtp server is running\n"; chomp ($ip=); system ("telnet"); system ("open $ip 25"); system("he

uninstall perlmodule

2004-10-22 Thread Adam Saeed
plz tell me how to uninstall a perl module... thanks Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: uninstall perlmodule

2004-10-25 Thread Adam Saeed
nstalled in the first place. > > -- > Chris Devers > -- Allah Hafiz O! God Thy sea is so great and my boat is so small. Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

errors using DBI

2004-11-11 Thread Adam Saeed
){ for ($i=0;$i<$#user;$i+=3){ my $Insert=("insert into contact_list values('$user[$j]','$user[$i+3]','$dept[$j+2]','$dept[$i+5]')"); my $rtn = $dbh->do ($Insert); } } #delete unspecified records my $delete=$dbh->do("delete from conta

remote database access in perl

2004-12-13 Thread Adam Saeed
uct='L2'"; my $sth = ($dbh->prepare($strsql) || die "Query could not be executed " . $dbh->errstr()); i$sth->execute(); while (my $row = $sth->fetchrow_arrayref){ print join("\t", @$row), "\n"; } $sth->finish(); $dbh->disconnect(); Script

Re: remote database access in perl

2004-12-14 Thread Adam Saeed
h->fetchrow_arrayref){ > > print join("\t", @$row), "\n"; > > } > > $sth->finish(); > > $dbh->disconnect(); > > > > Script is working fine on the host machine(192.168.14.2) but give > > error when run from remote machine... > > any

2 -D arry in perl

2005-03-08 Thread Adam Saeed
push (@data,@dayofyear); } } Regards, Adam Saeed [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Problem with SDL::Perl

2011-06-06 Thread Adam Fairbrother
ry at /usr/local/lib/perl/5.10.0/SDLx/Surface.pm line 188 SDLx::Surface::load('SDLx::Surface', 'pic.jpg') called at /usr/local/lib/perl/5.10.0/SDLx/Sprite.pm line 25 SDLx::Sprite::new('SDLx::Sprite', 'image', 'pic.jpg') called at ./slidesho

Re: Problem with SDL::Perl

2011-06-13 Thread Adam Fairbrother
Hi, It's been a week since I asked about this and No one has responded, Did I ask incorrectly or in the wrong mailing list? Any help that could be provided would be appreciated. Thanks, #-- Adam Fairbrother Help Desk Techn

Re: Problem with SDL::Perl

2011-06-14 Thread Adam Fairbrother
he correct info. http://dl.dropbox.com/u/949632/build.text #-- Adam Fairbrother Help Desk Technician afairbrot...@sd73.bc.ca School District #73 - "Kartik Thakore" wrote: > > Hi, > H Adam, > > >

Re: Problem with SDL::Perl

2011-06-14 Thread Adam Fairbrother
$LD_LIBRARY_PATH was unset. I set it manually to the SDL Libs folder, and the error no longer happens. My test picture dosn't show up, but I think that's an issue I can hack through myself. Thanks you for all the help with this. #-

Re: Scan data for XML invalid characters and parse articles

2002-02-13 Thread Adam Turoff
On Wed, Feb 13, 2002 at 08:40:14AM -0800, John wrote: > I have a scalar variable containing HTML that needs to be converted > to XML. It's not the best HTML so it has invalid characters (like > smart quotes, 1/2 character, etc.). I need to determine if these > characters exist in the data and

Re: multidimensional hashes

2002-03-04 Thread Adam Turoff
On Sun, Mar 03, 2002 at 06:29:09PM -0800, Randal L. Schwartz wrote: > Initially, you can use DBD::CSV or that > new DBD::-thingy that is more complete, That would be DBD::SQLite. Z. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Which is better?

2002-03-21 Thread Adam Turoff
On Thu, Mar 21, 2002 at 10:54:18AM +1000, Ken Cole wrote: > I have an inherited web app that works like this. [...] > My question, in my experience NFS is not the quickest program around. > Will it be faster to use say LWP or Net::ftp or similar to put and get > the files in question than writin

Re: Printing frequency of word occurence in paragraph

2002-03-22 Thread Adam Turoff
On Fri, Mar 22, 2002 at 09:37:05AM -0500, David Gray wrote: > while() will create an infinite loop, No, it won't. The "while ()" idiom will read one line at a time and automatically terminate the loop at the end of the file. > so you do need some sort of > sentinel value to break out of the lo

Re: help on searching an array

2002-03-27 Thread Adam Wesselink
I'd split up the foreach loop and the conditional it might be a little clunky, but here's the basic idea. bolFound = false foreach (@members) { if (/($enqmem)/i) { bolFound = true; } } if (bolFound) { do stuff } else { do other stuff } At 18:54 27-03-02 +

Re: Sybase stored procedure

2002-04-08 Thread Adam Turoff
On Mon, Apr 08, 2002 at 03:39:34PM +0200, Rune Hegrenes wrote: > I'm trying to execute a stored procedure in my database from Perl. > > I seen get only the first resultset from the procedure, not the > rest (the procedure returns 4 resultsets). > > How do I do this? > > I'm using the DBI::Sybase

Re: Pinging

2002-04-25 Thread Adam Morton
You can't 'ping a specific port' ping is an IP tool, and ports do not show up until the TCP/UDP level of your seven layer dip. Do some research on ICMP for more info. If you want to know if a service that uses a specific port is responding, you will have to make some valid request using whatever

Re: Calculating Last Login on Unix

2002-04-29 Thread Adam Morton
> On Monday, April 29, 2002, at 10:58 , [EMAIL PROTECTED] wrote: > [..] > > ipl of the server and therefore nulls wtmp > [..] > > good God Man! no one uses 'ipl' - it will scare the kiddies Is this, like, ancient IBM speak for "reboot"? IPL = "initial program load"? > That gives me the info

Re: Parameters

2002-05-03 Thread Adam Morton
e for purposes of reading from that file, you don't need to even look at @ARGV. The file(s) specified on the command line will be become the default filehandle for the <> operator, so just doing something like: while (<>) { } Will read from whatever file(s) you specified on

Re: BUSINESS GRAPHICS by PERL?

2002-05-07 Thread Adam Turoff
On Tue, May 07, 2002 at 11:30:03PM +0800, Ilarionov wrote: > Are there any links, tips, scripts, > about business graphics creation > by perl? What do you mean by "business graphics"? If you mean things like charts and graphs, then look at the GIFgraph, PNGgraph and GD::Graph modules for a sta

Re: lynx

2002-05-07 Thread Adam Morton
Well, if the web page is already in an acceptably readable form, you don't need perl at all (gasp!) if you use lynx. Just a contab entry and a pipe to a mailer. - Original Message - From: "Jonathan E. Paton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 07, 2002 1:44 PM

Re: reading multi-line into an array

2002-05-14 Thread Adam Morton
Since this is a beginners list, I guess someone (i.e. me) should point out that perhaps the simplest way to read an array from STDIN is to do something like: @theseLines = ; This will by default add one array entry per line of user input until the user enters a cntrl-d. Of course, if you are st

Re: passing array-ref from sub to sub

2002-05-17 Thread Adam Morton
-- According to this, my understanding is that all my's live in a symbol table that is not connected to any package namespace. --Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: hard references vs. variables

2002-05-23 Thread Adam Morton
- Original Message - From: "drieux" <[EMAIL PROTECTED]> > the variables on the left are 'softish references' to other things .. . . > not a reference but the thing in itself... > what I think you are calling 'hard reference'(). I believe 'soft references' in perl refers to the pra

Re: Links to randomly-accessed html pages

2002-05-29 Thread Adam Morton
A better approach would be to have a static 'left' frame that links to a CGI that redirects to a random page. Like so: This Link And then "RandomPage.cgi" just has to pic a random page, and return a redirect header to that page. - Original Message - From: "Rohesia Hamilton Metcalfe" <[E

Re: Reading RGB Values of Pixels in Images

2002-05-29 Thread Adam Morton
You want to "read the RGB pixel values from them and write these to a file"? As was already pointed out, that is already what is in the file for some graphics formats! What is it you are actually trying to accomplish here? Maybe you just want to use imagemagick on the command line to convert your

Re: What am I doing wrong... I want to increment a number in a DB

2002-06-03 Thread Adam Morton
o that directly in the SQL by using: "update media1 set history5 = history5 + 1 where ... " --Adam - Original Message - From: "FLAHERTY, JIM-CONT" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 02, 2002 9:59 PM Subject: What am I doing wr

  1   2   >