|
string compare $string1 eq $string2 will the above just compare the first letter of the 2 strings or compare the whole string. ... 7 Sep 2005 17:07
array question (newbie) Having an array: @mylist=("apples", "oranges", "bananas"); And refering to a particular element, which syntax is correct? (or are both correct)? print "Item 2 is $mylist[1]\n"; or print "Item 2 is @mylist[1]\n"; Both seem to work, and looking at other code, I see it done both ways. ... 31 Aug 2005 21:26
got time out in ftp hi guys after download a very big file from an ftp site I got the following error. Net::FTP=GLOB(0x38b36c)<<< 150 Opening BINARY mode data connection for collection.03.tar.gz (745238729 bytes) Net::FTP=GLOB(0x38b36c): Timeout at /System/Library/Perl/5.8.1/Net/FTP/dataconn.pm line 73 Unable to close datastream a... 28 Aug 2005 06:28
beginner question on using the Win32::OLE module Hello all, I'm trying to use my first module (and use perl for the first time in a number of years, too). I was able to install the Win32::OLE module, but now I'm not sure how I'd go about doing 2 things: 1. Opening a word doc file on the web 2. Copying all the text from the word doc file into a variable.... 26 Aug 2005 14:37
sort Hallo, I made a little script that sort the lines of a file: #! /usr/bin/perl sub numerically {$a <=> $b;} @array = <>; @array = sort numerically (@array); print (@array); Maybe the code is not so good, but why if I give thi input file: 1.3.5.6 1.1.2.4 111.222.444.555 1.2.5.6 11.22.44.55 1.2.3... 12 Aug 2005 15:02
Compiling Perl modules on AIX using gcc instead of cc_r? Anyone know of a way to compile C in Perl modules that require C using gcc instead of cc_r under AIX (5.2)? I've installed gcc on our AIX box, but Config for Perl is still pointing to cc_r (eg. $Config{cc} = 'cc_r'). Just changing the config option for the C compiler doesn't help since cc_r C flags are being pass... 29 Jun 2005 02:20
Is there neq for strings? Is there neq "not equal" operator in Perl? I want to do something like this: $a="mystring"; if ($a eq "abc") { print "hello"; } elsif ($a neq "bcd") { print "hello2"; } ... 8 Jun 2005 10:54
What are OOP's Jargons and Complexities? What are OOP's Jargons and Complexities Xah Lee, 20050128 The Rise of Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) { variables ... do this or that } In advanced languages such as LISP family, it is not uncommon to define fu... 7 Jun 2005 13:19
swift MT940 files Hi there, I am trying to read a bank file with a format called MT940 swift into a data structure. The format is as follows: :28C:12345/1 :60F:C041019GBP607,20 :61:041020C110088,00N540NONREF I am still learning unpack (I always used s/regex/ and then $1, $2, etc ..) and am wondering if someone can help m... 28 Feb 2005 23:03
To compare dates in a script Hi all, Below is the scenario. I have a file that has two entrees (a name and a date) seperated by a tab. I need to get only all those names in the file if the date on the each line is greater than a certain date, 12-31-2004. Script ####################### $current = "31-Dec-04"; foreach (<DATA>) { ($f... 14 Feb 2005 18:24 |