[23350] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 5569 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Sep 26 11:05:56 2003

Date: Fri, 26 Sep 2003 08:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 26 Sep 2003     Volume: 10 Number: 5569

Today's topics:
    Re: 1) How to debug CGI.pm cookies 2) Template.pm with  <flavell@ph.gla.ac.uk>
    Re: choose from duplicate hash keys <tore@aursand.no>
    Re: GD object problem (Vesselin Baev)
    Re: How to go up trace stack in debugger? (Peter Scott)
    Re: Is there a quick way to check if a scalar contains  <xx087@freenet.carleton.ca>
    Re: Is there a quick way to check if a scalar contains  <usenet@dwall.fastmail.fm>
    Re: Is there a quick way to check if a scalar contains  <pinyaj@rpi.edu>
    Re: Is there a quick way to check if a scalar contains  <uri@stemsystems.com>
        LWP::Simple get() problem <Hon.Lee@Sun.COM>
    Re: LWP::Simple get() problem <postmaster@castleamber.com.invalid>
    Re: OT: IE, the browser (was Re: favicon.ico and perl) <flavell@ph.gla.ac.uk>
    Re: packages <x12code-del@del-yahoo.com>
    Re: Perlish way to get absolute path of current working <usenet@dwall.fastmail.fm>
    Re: Perlish way to get absolute path of current working <usenet@dwall.fastmail.fm>
    Re: regexp question + html::parser question on the side <usenet@dwall.fastmail.fm>
    Re: Someone abusing moderator priveledge? <tom@nosleep.net>
    Re:  <bwalton@rochester.rr.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 26 Sep 2003 14:49:40 +0100
From: "Alan J. Flavell" <flavell@ph.gla.ac.uk>
Subject: Re: 1) How to debug CGI.pm cookies 2) Template.pm with CGI.pm
Message-Id: <Pine.LNX.4.53.0309261441450.5059@ppepc74.ph.gla.ac.uk>

On Fri, 26 Sep 2003, Mr I wrote:

> Mr I wrote:

(well, actually this was I:)
> >> There's very little that's Perl-specific in any of this.  Most of this
> >> discussion would seem to me to be better at home on the group
> >>  comp.infosystems.www.authoring.cgi
> >
> > Partly agree. All seem to have focused on the least of my  problems that
> > is only the 1st part of my question (see title).

The lesson we might learn from this as far as newsgroup strategy is
concerned is: if you have several questions, then choose the
appropriate group for posting each one separately.  No matter if you
have to repeat the background detail each time (you've got copy/paste
after all): make each question stand on its own feet in the group
where it fits best, and that way you rate to get optimum answers to
each, and a fairly tidy thread that anyone afterwards can consult and
learn from.  There are no guarantees (this is usenet, after all) but
given that it's a rough anarchy, there's nothing to be gained by
crossposting a laundry list of questions across all the groups where
one of them would be on-topic.  Make sense?  (well it does to me).

all the best

(there's no law against saying something like "oh by the way I've
posted some related questions on newsgroups X and Y if anyone's
interested in the big picture".)


------------------------------

Date: Fri, 26 Sep 2003 15:39:50 +0200
From: Tore Aursand <tore@aursand.no>
Subject: Re: choose from duplicate hash keys
Message-Id: <pan.2003.09.26.09.56.33.403261@aursand.no>

On Fri, 26 Sep 2003 18:01:25 +1000, JohnWalter wrote:
> in a data file with rows and columns, I need to see which lines are 
> repeated and get to choose which one of those repeated lines to keep
> [...]

Do you really need to choose between the repeated lines?  Can't you just
accept the first one you encounter and discard the rest?

> open DATA, $file or die $!;
> while (<DATA>) {
> 	my ($key, @value) = split;
> 	$table{$key}++;
> }

I would have done it something like this, keeping keys which have already
been "seen" in '%seen';

my %table = ();
my %seen  = ();

while ( <DATA> ) {
    chomp;
    my ( $key, @values ) = split;
    $table{$key} = \@values unless ( $seen{$key} );
    $seen{ $key }++;
}


-- 
Tore Aursand <tore@aursand.no>


------------------------------

Date: 26 Sep 2003 06:10:32 -0700
From: vesko_baev@abv.bg (Vesselin Baev)
Subject: Re: GD object problem
Message-Id: <cb413b7.0309260510.c10006d@posting.google.com>

When I installed the GD this is come up:

GD.xs:7:16: gd.h: No such file or directory
GD.xs:285: error: parse error before "GD__Image"
GD.xs:285: warning: data definition has no type or storage class
GD.xs:286: error: parse error before "GD__Font"
GD.xs:286: warning: data definition has no type or storage class
GD.xs:288: error: parse error before "gdFontGiant"
GD.xs:288: warning: data definition has no type or storage class
GD.xs:289: error: parse error before "gdFontLarge"
GD.xs:289: warning: data definition has no type or storage class
GD.xs:290: error: parse error before "gdFontSmall"
GD.xs:290: warning: data definition has no type or storage class
GD.xs:291: error: parse error before "gdFontMediumBold"
GD.xs:291: warning: data definition has no type or storage class
GD.xs:292: error: parse error before "gdFontTiny"
GD.xs:292: warning: data definition has no type or storage class
GD.xs:327: error: parse error before "gdIOCtx"
GD.xs:327: warning: no semicolon at end of struct or union
GD.xs:331: error: parse error before '}' token
GD.xs:331: warning: data definition has no type or storage class
GD.xs:335: error: parse error before "ctx"
GD.xs: In function `bufGetC':
GD.xs:336: error: `ctx' undeclared (first use in this function)
GD.xs:336: error: (Each undeclared identifier is reported only once
GD.xs:336: error: for each function it appears in.)
GD.xs:338: error: dereferencing pointer to incomplete type
GD.xs:338: error: dereferencing pointer to incomplete type
GD.xs:339: error: dereferencing pointer to incomplete type
GD.xs:339: error: dereferencing pointer to incomplete type
GD.xs: At top level:
GD.xs:342: error: parse error before "ctx"
GD.xs: In function `bufGetBuf':
GD.xs:343: error: `ctx' undeclared (first use in this function)
GD.xs:346: error: dereferencing pointer to incomplete type
GD.xs:346: error: dereferencing pointer to incomplete type
GD.xs:347: error: `len' undeclared (first use in this function)
GD.xs:353: error: `buf' undeclared (first use in this function)
GD.xs:353: error: dereferencing pointer to incomplete type
GD.xs:353: error: dereferencing pointer to incomplete type
GD.xs:354: error: dereferencing pointer to incomplete type
GD.xs: At top level:
GD.xs:358: error: parse error before "ctx"
GD.xs: In function `bufSeek':
GD.xs:359: error: `ctx' undeclared (first use in this function)
GD.xs:360: error: dereferencing pointer to incomplete type
GD.xs:361: error: dereferencing pointer to incomplete type
GD.xs:361: error: dereferencing pointer to incomplete type
GD.xs:362: error: dereferencing pointer to incomplete type
GD.xs:362: error: dereferencing pointer to incomplete type
GD.xs: At top level:
GD.xs:366: error: parse error before "ctx"
GD.xs: In function `bufTell':
GD.xs:367: error: `ctx' undeclared (first use in this function)
GD.xs:368: error: dereferencing pointer to incomplete type
GD.xs: At top level:
GD.xs:371: error: parse error before "ctx"
GD.xs: In function `bufFree':
GD.xs:372: error: `ctx' undeclared (first use in this function)
GD.xs: At top level:
GD.xs:375: error: parse error before '*' token
GD.xs: In function `newDynamicCtx':
GD.xs:378: error: parse error before ')' token
GD.xs:378: error: parse error before ')' token
GD.xs:378: error: `__s' undeclared (first use in this function)
GD.xs: At top level:
GD.xs:378: error: parse error before ')' token
GD.xs:378: error: `__s' undeclared here (not in a function)
GD.xs:378: error: parse error before "switch"
GD.xs:378: error: conflicting types for `__u'
GD.xs:378: error: previous declaration of `__u'
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before '->' token
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: redefinition of `__u'
GD.xs:378: error: `__u' previously defined here
GD.xs:378: warning: initialization makes integer from pointer without a cast
GD.xs:378: error: initializer element is not constant
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before "case"
GD.xs:378: error: `__s' used prior to declaration
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before '}' token
GD.xs:378: error: parse error before '\x0'
GD.xs:378: warning: data definition has no type or storage class
GD.xs:378: error: parse error before '}' token
GD.xs:396: error: parse error before "gd_cloneDim"
GD.xs:396: error: parse error before "src"
GD.xs: In function `gd_cloneDim':
GD.xs:397: error: parse error before "dst"
GD.xs:398: error: `src' undeclared (first use in this function)
GD.xs:399: error: `dst' undeclared (first use in this function)
GD.xs:399: error: parse error before "gdImageCreateTrueColor"
GD.xs:402: error: parse error before "gdImageCreatePalette"
GD.xs:404: error: `gdMaxColors' undeclared (first use in this function)
GD.xs: At top level:
GD.xs:420: error: parse error before "src"
GD.xs: In function `get_xformbounds':
GD.xs:423: error: `x' undeclared (first use in this function)
GD.xs:423: error: `src' undeclared (first use in this function)
GD.xs:424: error: `y' undeclared (first use in this function)
GD.xs:425: error: `x1' undeclared (first use in this function)
GD.xs:427: error: `x2' undeclared (first use in this function)
GD.xs:428: error: `y2' undeclared (first use in this function)
GD.xs: At top level:
GD.xs:455: error: parse error before "image"
GD.xs: In function `gd_chkimagefmt':
GD.xs:456: error: `truecolor' undeclared (first use in this function)
GD.xs:457: error: `image' undeclared (first use in this function)
GD.xs:458: error: `gdMaxColors' undeclared (first use in this function)
GD.c: In function `XS_GD__Image__new':
GD.c:532: error: parse error before "RETVAL"
GD.xs:501: error: `gdImagePtr' undeclared (first use in this function)
GD.xs:501: error: parse error before "theImage"
GD.xs:505: error: `theImage' undeclared (first use in this function)
GD.xs:505: error: parse error before "gdImageCreateTrueColor"
GD.xs:507: error: parse error before "gdImageCreate"
GD.xs:509: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image__newFromPng':
GD.c:582: error: parse error before "RETVAL"
GD.xs:522: error: `RETVAL' undeclared (first use in this function)
GD.xs:522: error: parse error before "gdImageCreateFromPng"
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:534: error: `gdIOCtx' undeclared (first use in this function)
GD.xs:534: error: `ctx' undeclared (first use in this function)
GD.c:615: error: parse error before "RETVAL"
GD.xs:541: error: `RETVAL' undeclared (first use in this function)
GD.xs:541: error: parse error before "gdImageCreateFromPngCtx"
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:554: error: `gdIOCtx' undeclared (first use in this function)
GD.xs:554: error: `ctx' undeclared (first use in this function)
GD.c:650: error: parse error before "RETVAL"
GD.xs:560: error: `RETVAL' undeclared (first use in this function)
GD.xs:560: error: parse error before "gdImageCreateFromGdCtx"
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:571: error: `gdIOCtx' undeclared (first use in this function)
GD.xs:571: error: `ctx' undeclared (first use in this function)
GD.c:683: error: parse error before "RETVAL"
GD.xs:577: error: `RETVAL' undeclared (first use in this function)
GD.xs:577: error: parse error before "gdImageCreateFromGd2Ctx"
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:588: error: `gdIOCtx' undeclared (first use in this function)
GD.xs:588: error: `ctx' undeclared (first use in this function)
GD.c:718: error: parse error before "RETVAL"
GD.xs:597: error: `RETVAL' undeclared (first use in this function)
GD.xs:597: error: parse error before "gdImageCreateFromJpegCtx"
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:615: error: `gdIOCtx' undeclared (first use in this function)
GD.xs:615: error: `ctx' undeclared (first use in this function)
GD.c:760: error: parse error before "RETVAL"
GD.xs:622: error: `RETVAL' undeclared (first use in this function)
GD.xs:622: error: parse error before "gdImageCreateFromWBMPCtx"
GD.c: In function `XS_GD__Image__newFromXbm':
GD.c:790: error: parse error before "RETVAL"
GD.xs:635: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image__newFromGd':
GD.c:815: error: parse error before "RETVAL"
GD.xs:645: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image__newFromGd2':
GD.c:840: error: parse error before "RETVAL"
GD.xs:655: error: `RETVAL' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image__newFromJpeg':
GD.xs:665: error: `gdImagePtr' undeclared (first use in this function)
GD.xs:665: error: parse error before "img"
GD.c:870: error: parse error before "RETVAL"
GD.xs:670: error: `img' undeclared (first use in this function)
GD.xs:677: error: `RETVAL' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image__newFromWBMP':
GD.xs:694: error: `gdImagePtr' undeclared (first use in this function)
GD.xs:694: error: parse error before "img"
GD.c:914: error: parse error before "RETVAL"
GD.xs:697: error: `img' undeclared (first use in this function)
GD.xs:704: error: `RETVAL' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image_newFromXpm':
GD.xs:714: error: `gdImagePtr' undeclared (first use in this function)
GD.xs:714: error: parse error before "img"
GD.c:950: error: parse error before "RETVAL"
GD.xs:718: error: `img' undeclared (first use in this function)
GD.xs:718: error: parse error before "gdImageCreateFromXpm"
GD.xs:725: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image__newFromGd2Part':
GD.c:992: error: parse error before "RETVAL"
GD.xs:744: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_DESTROY':
GD.c:1015: error: parse error before "image"
GD.c:1019: error: `image' undeclared (first use in this function)
GD.c:1019: error: called object is not a function
GD.c: In function `XS_GD__Image_png':
GD.c:1039: error: parse error before "image"
GD.c:1044: error: `image' undeclared (first use in this function)
GD.c:1044: error: called object is not a function
GD.c: In function `XS_GD__Image_jpeg':
GD.c:1076: error: parse error before "image"
GD.c:1085: error: `image' undeclared (first use in this function)
GD.c:1085: error: called object is not a function
GD.c: In function `XS_GD__Image_wbmp':
GD.c:1129: error: parse error before "image"
GD.c:1138: error: `image' undeclared (first use in this function)
GD.c:1138: error: called object is not a function
GD.c: In function `XS_GD__Image_gd':
GD.c:1170: error: parse error before "image"
GD.c:1175: error: `image' undeclared (first use in this function)
GD.c:1175: error: called object is not a function
GD.xs:840: warning: assignment makes pointer from integer without a cast
GD.c: In function `XS_GD__Image_gd2':
GD.c:1201: error: parse error before "image"
GD.c:1206: error: `image' undeclared (first use in this function)
GD.c:1206: error: called object is not a function
GD.xs:855: error: `GD2_FMT_COMPRESSED' undeclared (first use in this function)
GD.xs:855: warning: assignment makes pointer from integer without a cast
GD.c: In function `XS_GD__Image_transparent':
GD.c:1232: error: parse error before "image"
GD.c:1238: error: `image' undeclared (first use in this function)
GD.c:1238: error: called object is not a function
GD.c: In function `XS_GD__Image_getBounds':
GD.c:1265: error: parse error before "image"
GD.c:1269: error: `image' undeclared (first use in this function)
GD.c:1269: error: called object is not a function
GD.c: In function `XS_GD__Image_isTrueColor':
GD.c:1295: error: parse error before "image"
GD.c:1301: error: `image' undeclared (first use in this function)
GD.c:1301: error: called object is not a function
GD.c: In function `XS_GD__Image_trueColorToPalette':
GD.c:1322: error: parse error before "image"
GD.c:1328: error: `image' undeclared (first use in this function)
GD.c:1328: error: called object is not a function
GD.c:1340: error: `gdMaxColors' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_rgb':
GD.c:1361: error: parse error before "image"
GD.c:1366: error: `image' undeclared (first use in this function)
GD.c:1366: error: called object is not a function
GD.c: In function `XS_GD__Image_boundsSafe':
GD.c:1394: error: parse error before "image"
GD.c:1402: error: `image' undeclared (first use in this function)
GD.c:1402: error: called object is not a function
GD.c: In function `XS_GD__Image_getPixel':
GD.c:1425: error: parse error before "image"
GD.c:1433: error: `image' undeclared (first use in this function)
GD.c:1433: error: called object is not a function
GD.c: In function `XS_GD__Image_setPixel':
GD.c:1454: error: parse error before "image"
GD.c:1461: error: `image' undeclared (first use in this function)
GD.c:1461: error: called object is not a function
GD.c: In function `XS_GD__Image_copyRotate90':
GD.c:1481: error: parse error before "src"
GD.c:1486: error: `src' undeclared (first use in this function)
GD.c:1486: error: called object is not a function
GD.xs:978: error: parse error before "dst"
GD.xs:980: error: `dst' undeclared (first use in this function)
GD.xs:980: error: parse error before "gd_cloneDim"
GD.xs:984: error: invalid lvalue in assignment
GD.xs:984: error: invalid lvalue in assignment
GD.xs:987: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_copyRotate180':
GD.c:1518: error: parse error before "src"
GD.c:1523: error: `src' undeclared (first use in this function)
GD.c:1523: error: called object is not a function
GD.xs:999: error: parse error before "dst"
GD.xs:1001: error: `dst' undeclared (first use in this function)
GD.xs:1001: error: parse error before "gd_cloneDim"
GD.xs:1005: error: invalid lvalue in assignment
GD.xs:1005: error: invalid lvalue in assignment
GD.xs:1008: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_copyRotate270':
GD.c:1555: error: parse error before "src"
GD.c:1560: error: `src' undeclared (first use in this function)
GD.c:1560: error: called object is not a function
GD.xs:1020: error: parse error before "dst"
GD.xs:1022: error: `dst' undeclared (first use in this function)
GD.xs:1022: error: parse error before "gd_cloneDim"
GD.xs:1026: error: invalid lvalue in assignment
GD.xs:1026: error: invalid lvalue in assignment
GD.xs:1029: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_copyFlipHorizontal':
GD.c:1592: error: parse error before "src"
GD.c:1597: error: `src' undeclared (first use in this function)
GD.c:1597: error: called object is not a function
GD.xs:1041: error: parse error before "dst"
GD.xs:1043: error: `dst' undeclared (first use in this function)
GD.xs:1043: error: parse error before "gd_cloneDim"
GD.xs:1047: error: invalid lvalue in assignment
GD.xs:1047: error: invalid lvalue in assignment
GD.xs:1050: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_copyFlipVertical':
GD.c:1629: error: parse error before "src"
GD.c:1634: error: `src' undeclared (first use in this function)
GD.c:1634: error: called object is not a function
GD.xs:1062: error: parse error before "dst"
GD.xs:1064: error: `dst' undeclared (first use in this function)
GD.xs:1064: error: parse error before "gd_cloneDim"
GD.xs:1068: error: invalid lvalue in assignment
GD.xs:1068: error: invalid lvalue in assignment
GD.xs:1071: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_copyTranspose':
GD.c:1666: error: parse error before "src"
GD.c:1671: error: `src' undeclared (first use in this function)
GD.c:1671: error: called object is not a function
GD.xs:1083: error: parse error before "dst"
GD.xs:1085: error: `dst' undeclared (first use in this function)
GD.xs:1085: error: parse error before "gd_cloneDim"
GD.xs:1089: error: invalid lvalue in assignment
GD.xs:1089: error: invalid lvalue in assignment
GD.xs:1092: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_copyReverseTranspose':
GD.c:1703: error: parse error before "src"
GD.c:1708: error: `src' undeclared (first use in this function)
GD.c:1708: error: called object is not a function
GD.xs:1104: error: parse error before "dst"
GD.xs:1106: error: `dst' undeclared (first use in this function)
GD.xs:1106: error: parse error before "gd_cloneDim"
GD.xs:1110: error: invalid lvalue in assignment
GD.xs:1110: error: invalid lvalue in assignment
GD.xs:1113: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Image_rotate180':
GD.c:1740: error: parse error before "src"
GD.c:1744: error: `src' undeclared (first use in this function)
GD.c:1744: error: called object is not a function
GD.xs:1130: error: invalid lvalue in assignment
GD.xs:1130: error: invalid lvalue in assignment
GD.xs:1131: error: invalid lvalue in assignment
GD.xs:1131: error: invalid lvalue in assignment
GD.c: In function `XS_GD__Image_flipHorizontal':
GD.c:1773: error: parse error before "src"
GD.c:1777: error: `src' undeclared (first use in this function)
GD.c:1777: error: called object is not a function
GD.xs:1148: error: invalid lvalue in assignment
GD.xs:1148: error: invalid lvalue in assignment
GD.xs:1149: error: invalid lvalue in assignment
GD.xs:1149: error: invalid lvalue in assignment
GD.c: In function `XS_GD__Image_flipVertical':
GD.c:1806: error: parse error before "src"
GD.c:1810: error: `src' undeclared (first use in this function)
GD.c:1810: error: called object is not a function
GD.xs:1166: error: invalid lvalue in assignment
GD.xs:1166: error: invalid lvalue in assignment
GD.xs:1167: error: invalid lvalue in assignment
GD.xs:1167: error: invalid lvalue in assignment
GD.c: In function `XS_GD__Image_line':
GD.c:1839: error: parse error before "image"
GD.c:1848: error: `image' undeclared (first use in this function)
GD.c:1848: error: called object is not a function
GD.c: In function `XS_GD__Image_dashedLine':
GD.c:1868: error: parse error before "image"
GD.c:1877: error: `image' undeclared (first use in this function)
GD.c:1877: error: called object is not a function
GD.c: In function `XS_GD__Image_openPolygon':
GD.c:1897: error: parse error before "image"
GD.c:1903: error: `image' undeclared (first use in this function)
GD.c:1903: error: called object is not a function
GD.xs:1211: error: `gdPointPtr' undeclared (first use in this function)
GD.xs:1211: error: parse error before "polyptr"
GD.xs:1227: error: `polyptr' undeclared (first use in this function)
GD.xs:1227: error: parse error before "Perl_safesysmalloc"
GD.c: In function `XS_GD__Image_filledPolygon':
GD.c:1968: error: parse error before "image"
GD.c:1974: error: `image' undeclared (first use in this function)
GD.c:1974: error: called object is not a function
GD.xs:1267: error: `gdPointPtr' undeclared (first use in this function)
GD.xs:1267: error: parse error before "polyptr"
GD.xs:1283: error: `polyptr' undeclared (first use in this function)
GD.xs:1283: error: parse error before "Perl_safesysmalloc"
GD.c: In function `XS_GD__Image_rectangle':
GD.c:2039: error: parse error before "image"
GD.c:2048: error: `image' undeclared (first use in this function)
GD.c:2048: error: called object is not a function
GD.c: In function `XS_GD__Image_filledRectangle':
GD.c:2068: error: parse error before "image"
GD.c:2077: error: `image' undeclared (first use in this function)
GD.c:2077: error: called object is not a function
GD.c: In function `XS_GD__Image_filledEllipse':
GD.c:2097: error: parse error before "image"
GD.c:2106: error: `image' undeclared (first use in this function)
GD.c:2106: error: called object is not a function
GD.c: In function `XS_GD__Image_arc':
GD.c:2126: error: parse error before "image"
GD.c:2137: error: `image' undeclared (first use in this function)
GD.c:2137: error: called object is not a function
GD.c: In function `XS_GD__Image_filledArc':
GD.c:2157: error: parse error before "image"
GD.c:2169: error: `image' undeclared (first use in this function)
GD.c:2169: error: called object is not a function
GD.c: In function `XS_GD__Image_fillToBorder':
GD.c:2195: error: parse error before "image"
GD.c:2203: error: `image' undeclared (first use in this function)
GD.c:2203: error: called object is not a function
GD.c: In function `XS_GD__Image_fill':
GD.c:2223: error: parse error before "image"
GD.c:2230: error: `image' undeclared (first use in this function)
GD.c:2230: error: called object is not a function
GD.c: In function `XS_GD__Image_setBrush':
GD.c:2250: error: parse error before "image"
GD.c:2255: error: `image' undeclared (first use in this function)
GD.c:2255: error: called object is not a function
GD.c:2262: error: `brush' undeclared (first use in this function)
GD.c:2262: error: called object is not a function
GD.c: In function `XS_GD__Image_setTile':
GD.c:2282: error: parse error before "image"
GD.c:2287: error: `image' undeclared (first use in this function)
GD.c:2287: error: called object is not a function
GD.c:2294: error: `tile' undeclared (first use in this function)
GD.c:2294: error: called object is not a function
GD.c: In function `XS_GD__Image_setThickness':
GD.c:2314: error: parse error before "image"
GD.c:2319: error: `image' undeclared (first use in this function)
GD.c:2319: error: called object is not a function
GD.c: In function `XS_GD__Image_setStyle':
GD.c:2339: error: parse error before "image"
GD.c:2343: error: `image' undeclared (first use in this function)
GD.c:2343: error: called object is not a function
GD.c: In function `XS_GD__Image_colorAllocate':
GD.c:2375: error: parse error before "image"
GD.c:2384: error: `image' undeclared (first use in this function)
GD.c:2384: error: called object is not a function
GD.c: In function `XS_GD__Image_colorClosest':
GD.c:2405: error: parse error before "image"
GD.c:2414: error: `image' undeclared (first use in this function)
GD.c:2414: error: called object is not a function
GD.c: In function `XS_GD__Image_colorClosestHWB':
GD.c:2435: error: parse error before "image"
GD.c:2444: error: `image' undeclared (first use in this function)
GD.c:2444: error: called object is not a function
GD.c: In function `XS_GD__Image_colorExact':
GD.c:2465: error: parse error before "image"
GD.c:2474: error: `image' undeclared (first use in this function)
GD.c:2474: error: called object is not a function
GD.c: In function `XS_GD__Image_colorResolve':
GD.c:2495: error: parse error before "image"
GD.c:2504: error: `image' undeclared (first use in this function)
GD.c:2504: error: called object is not a function
GD.c: In function `XS_GD__Image_colorsTotal':
GD.c:2525: error: parse error before "image"
GD.c:2531: error: `image' undeclared (first use in this function)
GD.c:2531: error: called object is not a function
GD.c: In function `XS_GD__Image_interlaced':
GD.c:2552: error: parse error before "image"
GD.c:2558: error: `image' undeclared (first use in this function)
GD.c:2558: error: called object is not a function
GD.c: In function `XS_GD__Image_compare':
GD.c:2585: error: parse error before "image1"
GD.c:2592: error: `image1' undeclared (first use in this function)
GD.c:2592: error: called object is not a function
GD.c:2599: error: `image2' undeclared (first use in this function)
GD.c:2599: error: called object is not a function
GD.c: In function `XS_GD__Image_colorDeallocate':
GD.c:2620: error: parse error before "image"
GD.c:2625: error: `image' undeclared (first use in this function)
GD.c:2625: error: called object is not a function
GD.c: In function `XS_GD__Image_copy':
GD.c:2645: error: parse error before "destination"
GD.c:2656: error: `destination' undeclared (first use in this function)
GD.c:2656: error: called object is not a function
GD.c:2663: error: `source' undeclared (first use in this function)
GD.c:2663: error: called object is not a function
GD.c: In function `XS_GD__Image_copyResized':
GD.c:2683: error: parse error before "destination"
GD.c:2696: error: `destination' undeclared (first use in this function)
GD.c:2696: error: called object is not a function
GD.c:2703: error: `source' undeclared (first use in this function)
GD.c:2703: error: called object is not a function
GD.c: In function `XS_GD__Image_copyResampled':
GD.c:2723: error: parse error before "destination"
GD.c:2736: error: `destination' undeclared (first use in this function)
GD.c:2736: error: called object is not a function
GD.c:2743: error: `source' undeclared (first use in this function)
GD.c:2743: error: called object is not a function
GD.c: In function `XS_GD__Image_copyMerge':
GD.c:2763: error: parse error before "destination"
GD.c:2775: error: `destination' undeclared (first use in this function)
GD.c:2775: error: called object is not a function
GD.c:2782: error: `source' undeclared (first use in this function)
GD.c:2782: error: called object is not a function
GD.c: In function `XS_GD__Image_copyMergeGray':
GD.c:2802: error: parse error before "destination"
GD.c:2814: error: `destination' undeclared (first use in this function)
GD.c:2814: error: called object is not a function
GD.c:2821: error: `source' undeclared (first use in this function)
GD.c:2821: error: called object is not a function
GD.c: In function `XS_GD__Image_paletteCopy':
GD.c:2841: error: parse error before "destination"
GD.c:2846: error: `destination' undeclared (first use in this function)
GD.c:2846: error: called object is not a function
GD.c:2853: error: `source' undeclared (first use in this function)
GD.c:2853: error: called object is not a function
GD.c: In function `XS_GD__Image_char':
GD.c:2873: error: parse error before "image"
GD.c:2882: error: `image' undeclared (first use in this function)
GD.c:2882: error: called object is not a function
GD.c:2889: error: `font' undeclared (first use in this function)
GD.c:2889: error: called object is not a function
GD.c: In function `XS_GD__Image_charUp':
GD.c:2909: error: parse error before "image"
GD.c:2918: error: `image' undeclared (first use in this function)
GD.c:2918: error: called object is not a function
GD.c:2925: error: `font' undeclared (first use in this function)
GD.c:2925: error: called object is not a function
GD.c: In function `XS_GD__Image_string':
GD.c:2945: error: parse error before "image"
GD.c:2954: error: `image' undeclared (first use in this function)
GD.c:2954: error: called object is not a function
GD.c:2961: error: `font' undeclared (first use in this function)
GD.c:2961: error: called object is not a function
GD.c: In function `XS_GD__Image_stringUp':
GD.c:2981: error: parse error before "image"
GD.c:2990: error: `image' undeclared (first use in this function)
GD.c:2990: error: called object is not a function
GD.c:2997: error: `font' undeclared (first use in this function)
GD.c:2997: error: called object is not a function
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:1749: error: `gdImagePtr' undeclared (first use in this function)
GD.xs:1749: error: parse error before "img"
GD.xs:1756: error: `gdFTStringExtra' undeclared (first use in this function)
GD.xs:1756: error: parse error before "strex"
GD.xs:1766: error: `img' undeclared (first use in this function)
GD.xs:1766: error: parse error before "tmp"
GD.xs:1775: error: `strex' undeclared (first use in this function)
GD.xs:1779: error: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:1783: error: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:1785: error: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:1787: error: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:1789: error: `gdFTEX_Big5' undeclared (first use in this function)
GD.xs:1793: warning: assignment makes pointer from integer without a cast
GD.xs:1797: warning: assignment makes pointer from integer without a cast
GD.c: In function `XS_GD__Image_alphaBlending':
GD.c:3104: error: parse error before "image"
GD.c:3109: error: `image' undeclared (first use in this function)
GD.c:3109: error: called object is not a function
GD.c: In function `XS_GD__Image_saveAlpha':
GD.c:3129: error: parse error before "image"
GD.c:3134: error: `image' undeclared (first use in this function)
GD.c:3134: error: called object is not a function
GD.c: In function `XS_GD__Image_clip':
GD.c:3155: error: parse error before "image"
GD.c:3163: error: `image' undeclared (first use in this function)
GD.c:3163: error: called object is not a function
GD.c: In function `XS_GD__Image_setAntiAliased':
GD.c:3195: error: parse error before "image"
GD.c:3200: error: `image' undeclared (first use in this function)
GD.c:3200: error: called object is not a function
GD.c: In function `XS_GD__Image_setAntiAliasedDontBlend':
GD.c:3220: error: parse error before "image"
GD.c:3226: error: `image' undeclared (first use in this function)
GD.c:3226: error: called object is not a function
GD.c: In function `XS_GD__Font_Small':
GD.c:3253: error: parse error before "RETVAL"
GD.xs:1887: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_Large':
GD.c:3279: error: parse error before "RETVAL"
GD.xs:1898: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_Giant':
GD.c:3305: error: parse error before "RETVAL"
GD.xs:1909: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_MediumBold':
GD.c:3331: error: parse error before "RETVAL"
GD.xs:1920: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_Tiny':
GD.c:3357: error: parse error before "RETVAL"
GD.xs:1931: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_nchars':
GD.c:3382: error: parse error before "font"
GD.c:3388: error: `font' undeclared (first use in this function)
GD.c:3388: error: called object is not a function
GD.c: In function `XS_GD__Font_offset':
GD.c:3409: error: parse error before "font"
GD.c:3415: error: `font' undeclared (first use in this function)
GD.c:3415: error: called object is not a function
GD.c: In function `XS_GD__Font_width':
GD.c:3436: error: parse error before "font"
GD.c:3442: error: `font' undeclared (first use in this function)
GD.c:3442: error: called object is not a function
GD.c: In function `XS_GD__Font_height':
GD.c:3463: error: parse error before "font"
GD.c:3469: error: `font' undeclared (first use in this function)
GD.c:3469: error: called object is not a function
{standard input}: Assembler messages:
{standard input}:31: Error: symbol `__u' is already defined
{standard input}:37: Error: symbol `__u' is already defined
{standard input}:43: Error: symbol `__u' is already defined
{standard input}:49: Error: symbol `__u' is already defined
{standard input}:55: Error: symbol `__u' is already defined
{standard input}:61: Error: symbol `__u' is already defined
{standard input}:67: Error: symbol `__u' is already defined
{standard input}:73: Error: symbol `__u' is already defined
{standard input}:79: Error: symbol `__u' is already defined
{standard input}:85: Error: symbol `__u' is already defined
{standard input}:91: Error: symbol `__u' is already defined
make: *** [GD.o] Error 1


------------------------------

Date: Fri, 26 Sep 2003 14:14:33 GMT
From: peter@PSDT.com (Peter Scott)
Subject: Re: How to go up trace stack in debugger?
Message-Id: <dRXcb.26153$TM4.20289@pd7tw2no>

In article <bkv2a0$ga9$1@reader2.panix.com>,
 J Krugman <jill_krugman@yahoo.com> writes:
>
>Here's a recurrent situation.  I'm running a program in the debugger,
>the program dies for some reason, and I want to inspect the scope
>in which the current function was called.  In other words, I want
>to be able to climb up the stack trace and poke around there.  How
>can I do this?

It's not as pretty in Perl compared to what some other debuggers
for other languages offer.  You can see the stack trace with 'T'.
That tells you enough to go manually display the source code of
the higher levels (with the 'f' and 'l' commands).  I got fed up
with not being able to see lexical variables in the higher levels
and added the 'y' command in 5.8.0, which does that.  You'll need
the PadWalker module from CPAN.

Summary: you can do most things you want to, but they take effort.

-- 
Peter Scott
http://www.perldebugged.com


------------------------------

Date: 26 Sep 2003 13:06:07 GMT
From: Glenn Jackman <xx087@freenet.carleton.ca>
Subject: Re: Is there a quick way to check if a scalar contains non-alpha-numeric characters?
Message-Id: <slrnbn8eer.4jv.xx087@smeagol.ncf.ca>

John Smith <someone@microsoft.com> wrote:
>  I want to ensure that a variable does not contain spaces, and other
>  non-alpha-numeric characters such as !#$%^&*()-=+, etc... Basically, this
>  variable is a username that someone is sending to me and will only be 4 to
>  10 characters long. It must only contain numbers and letters, otherwise I
>  will reject it.

    reject($username) unless $username =~ /^[A-Za-z\d]{4,10}$/;

-- 
Glenn Jackman
NCF Sysadmin
glennj@ncf.ca


------------------------------

Date: Fri, 26 Sep 2003 14:08:25 -0000
From: "David K. Wall" <usenet@dwall.fastmail.fm>
Subject: Re: Is there a quick way to check if a scalar contains non-alpha-numeric characters?
Message-Id: <Xns94026714A127dkwwashere@216.168.3.30>

Glenn Jackman <xx087@freenet.carleton.ca> wrote:

> John Smith <someone@microsoft.com> wrote:
>>  I want to ensure that a variable does not contain spaces, and
>>  other non-alpha-numeric characters such as !#$%^&*()-=+, etc...
>>  Basically, this variable is a username that someone is sending
>>  to me and will only be 4 to 10 characters long. It must only
>>  contain numbers and letters, otherwise I will reject it.
> 
>     reject($username) unless $username =~ /^[A-Za-z\d]{4,10}$/;

I think you mean /^[A-Za-z0-9]{4,10}$/ or maybe /^[[:alnum:]]{4,10}$/  

Putting \d inside a character class matches '\' and 'd', not digits.

I'll let someone else worry about locale, although I suspect it doesn't 
matter much for the OP.


------------------------------

Date: Fri, 26 Sep 2003 10:37:50 -0400
From: Jeff 'japhy' Pinyan <pinyaj@rpi.edu>
Subject: Re: Is there a quick way to check if a scalar contains non-alpha-numeric characters?
Message-Id: <Pine.SGI.3.96.1030926103709.825847A-100000@vcmr-64.server.rpi.edu>

On Fri, 26 Sep 2003, David K. Wall wrote:

>Glenn Jackman <xx087@freenet.carleton.ca> wrote:
>
>>     reject($username) unless $username =~ /^[A-Za-z\d]{4,10}$/;
>
>Putting \d inside a character class matches '\' and 'd', not digits.

Not true.  The pseudo-classes \w, \W, \s, \S, \d, and \D work fine in a
character class.

-- 
Jeff Pinyan            RPI Acacia Brother #734            2003 Rush Chairman
"And I vos head of Gestapo for ten     | Michael Palin (as Heinrich Bimmler)
 years.  Ah!  Five years!  Nein!  No!  | in: The North Minehead Bye-Election
 Oh.  Was NOT head of Gestapo AT ALL!" | (Monty Python's Flying Circus)



------------------------------

Date: Fri, 26 Sep 2003 14:56:01 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Is there a quick way to check if a scalar contains non-alpha-numeric characters?
Message-Id: <x7d6dn7g5a.fsf@mail.sysarch.com>

>>>>> "DKW" == David K Wall <usenet@dwall.fastmail.fm> writes:

  DKW> Putting \d inside a character class matches '\' and 'd', not digits.

perl -le 'print "match" if "123" =~ /[\d]/'
match

you can put any char class shortcut (\d,\s,\D, etc.) into a char
class. it just is merged (union in set terms) with all the other chars
and shortcuts in that char class.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
Damian Conway Class in Boston - Sept 2003 -- http://www.stemsystems.com/class


------------------------------

Date: Fri, 26 Sep 2003 15:22:55 +0100
From: Hon Guin Lee - Web Producer - SMI Marketing <Hon.Lee@Sun.COM>
Subject: LWP::Simple get() problem
Message-Id: <3F744BBF.8A82419B@Sun.COM>

Hi,

I am having problems with the following code, in which the get() function from the LWP::Simple is not
retrieving any of the contents of the web page from the specified URL location on the associated web form.  

From the following code, it only outputs "Ok" on the web browser.

The web browser I am currently using is Netscape version 4.79, and using Perl version 5.6.1, although the @INC
points to Perl version 5.0.5 on the local web server which I am placing the html, and cgi files on.

The question is that shouldn't print $page place the HTML content of the specified URL on the web browser, and
in my case why doesn't this occur?  This also relates all the similar functions within the LWP::Simple module
such as getprint(), getstore(), and head().

When I place the -w switch onto the perl interpreter initial line code, the following warnings are shown and
the perl script doesn't compile and displays a server error on the web browser.

---------------------------------------------------------------------
Unquoted string "lang" may clash with future reserved word at automation1.cgi line 26.
Content-type: text/html

Use of uninitialized value in concatenation (.) or string at automation1.cgi line 25.
Use of uninitialized value in pattern match (m//) at /usr/local/perl5.6/lib/site_perl/5.6.1/LWP/Simple.pm line
292.
Use of uninitialized value in print at automation1.cgi line 47.

---------------------------------------------------------------------


If any one has a solution to this problem, reply back.


---------------------------------------------------------------------
#!/usr/local/perl5.6/bin/perl 

# perl script to get remote 
# urls and strip them and 
# upload them to teamsite 

use LWP::Simple qw(!head);
use CGI qw(:standard);  # then only CGI.pm defines a head()

my ($url, $lang, $page);

$query = new CGI;

print "Content-type: text/html\n\n";

process_form();
get_url($url);

# Passes the data from the server, 
# and takes them onto the PERL script.

sub process_form {

 $url = $query->param(url);
 $url = "http://" . $url;
 $lang = $query->param(lang);
  
}

# Retrieves the contents of the 
# specified URL.

sub get_url {

  $page = get ($_);
  
  if ($page = undef) {
    print "Couldn't retrieve $url";
  }
  else {
    print "Ok";
    print $page;
  }

}
---------------------------------------------------------------------


------------------------------

Date: Fri, 26 Sep 2003 16:51:57 +0200
From: John Bokma <postmaster@castleamber.com.invalid>
Subject: Re: LWP::Simple get() problem
Message-Id: <1064588045.303700@halkan.kabelfoon.nl>

Hon Guin Lee - Web Producer - SMI Marketing wrote:

> If any one has a solution to this problem, reply back.

No.

> ---------------------------------------------------------------------
> #!/usr/local/perl5.6/bin/perl 

add -w and preferable even -T

> # perl script to get remote 
> # urls and strip them and 
> # upload them to teamsite 

add

use strict;

> use LWP::Simple qw(!head);
> use CGI qw(:standard);  # then only CGI.pm defines a head()
> 
> my ($url, $lang, $page);
> 
> $query = new CGI;
> 
> print "Content-type: text/html\n\n";

Don't output the headers by yourself, use the CGI module for this.

> process_form();
> get_url($url);
> 
> # Passes the data from the server, 
> # and takes them onto the PERL script.
> 
> sub process_form {
> 
>  $url = $query->param(url);

check what you get back here, *always*, see 
http://johnbokma.com/websitedesign/ for some info regarding this.

>  $url = "http://" . $url;

read about variable interpolation:

$url = "http://$url";

>  $lang = $query->param(lang);

put url and lang between '' (or "")

> sub get_url {
> 
>   $page = get ($_);

try print "$_\n"; here and be amazed (I guess)

use:

my ($url) = @_;
my $page = get($url);

-- 
Kind regards,       virtual home: http://johnbokma.com/  ICQ: 218175426
                     web site hints: http://johnbokma.com/websitedesign/
John       I count my toes ~ one to ten ~ I meditate ~ and feel the Zen



------------------------------

Date: Fri, 26 Sep 2003 14:52:43 +0100
From: "Alan J. Flavell" <flavell@ph.gla.ac.uk>
Subject: Re: OT: IE, the browser (was Re: favicon.ico and perl)
Message-Id: <Pine.LNX.4.53.0309261451000.5059@ppepc74.ph.gla.ac.uk>

On Fri, 26 Sep 2003, Michael Budash wrote:

> plus, it has [at least one of] the best DOM implementations, which
> does matter when you're doing moderately trick DHTML/CSS.

If it hurts when you try to do that, maybe the answer would be to stop
doing it.  SCNR.


------------------------------

Date: Fri, 26 Sep 2003 08:59:09 -0500
From: David McDivitt <x12code-del@del-yahoo.com>
Subject: Re: packages
Message-Id: <hcg8nvckodi110a32aolnernivg46rl9qc@4ax.com>

>From: tiltonj@erols.com (Jay Tilton)
>Subject: Re: packages
>Date: Thu, 25 Sep 2003 22:06:31 GMT

<snip>

>Visible in main:: , yes.  And if main:: is not the package where the
>use() occurred, main:: gets the extra baggage instead of the package
>that asked for it.
>
>Exporter.pm , on the other hand, exports symbols to the package where
>the use() occurrs.  Even better, the programmer can control which
>symbols get exported without altering the module at all.

When I reference one package from another package, variables in the
innermost package I want to be global are no longer visible to the main
module. If I reference the package declaring the global variables directly,
they are visible. My application has seven main modules, each making a
different browser page. On some I do not need the functionality of both
packages, on others I do. It seemed best to reference one package from the
other package making them nested. For those modules needing both packages I
reference the outer one. For others I reference the inner one. With exporter
this does not work. Variables placed in the export list, when used in the
outer module, generate the error saying they must be qualified by package
name. Also, some routines say too many arguments are being used.



------------------------------

Date: Fri, 26 Sep 2003 13:47:10 -0000
From: "David K. Wall" <usenet@dwall.fastmail.fm>
Subject: Re: Perlish way to get absolute path of current working directory?
Message-Id: <Xns9402637A4B56Ddkwwashere@216.168.3.30>

Jürgen Exner <jurgenex@hotmail.com> wrote:

> David K. Wall wrote:
>> "Jürgen Exner" <jurgenex@hotmail.com> wrote:
>>
>>> Bob Walton wrote:
>>>> Is there a Perlish non-OS-dependent way to get the absolute
>>>> path of the current working directory of a Perl program?
>>>
>>> Has been answered several times in the last two days:
>>>
>>>     perldoc Cwd
>>
>> Ok.  Why not FindBin?
> 
> Because FindBin does not provide any information about the current
> working directory?

Oh, duh.  <smack self>  

-- 
David Wall


------------------------------

Date: Fri, 26 Sep 2003 13:48:31 -0000
From: "David K. Wall" <usenet@dwall.fastmail.fm>
Subject: Re: Perlish way to get absolute path of current working directory?
Message-Id: <Xns940263B4A1213dkwwashere@216.168.3.30>

Jürgen Exner <jurgenex@hotmail.com> wrote:

> The OP was explicitely asking for the current working directory.
> Exactly which function or variable in FindBin does provide this
> information? 

None of them, of course.  I think I'm getting senile.

-- 
David Wall


------------------------------

Date: Fri, 26 Sep 2003 13:56:45 -0000
From: "David K. Wall" <usenet@dwall.fastmail.fm>
Subject: Re: regexp question + html::parser question on the side
Message-Id: <Xns9402651A3FCF4dkwwashere@216.168.3.30>

boris bass <bbass@hotmail.com> wrote:

> if somebody could post a code snippet how to do it would also be
> appreciated. doesn't have to be tested, just to point me at the
> right direction. i looked at html::parser doc page, but i haven't
> figured it out on my own

If HTML::Parser seems weird, try HTML::TokeParser.  It may seem more 
intuitive.


-- 
David Wall


------------------------------

Date: Fri, 26 Sep 2003 07:28:56 -0700
From: "Tom" <tom@nosleep.net>
Subject: Re: Someone abusing moderator priveledge?
Message-Id: <3f744c78$1@nntp0.pdx.net>


"Peter Hickman" <peter@semantico.com> wrote in message
news:3f74053e$0$24112$afc38c87@news.easynet.co.uk...
> Tom wrote:
> > I think one of the local cops in this group might be overstepping his
> > boundaries and not posting my posts because of disagreements here.
>
> Do you honestly think that you are that important that people waste their
time
> keeping track of you?
>
> You are delusional.
>

It has nothing to do with that. It has to do with a clueless child being in
a position they have no business being in.
There happens to be an overabundance of such individuals in the world,
otherwise we wouldn't have such fearful leaders currently in charge.




------------------------------

Date: Sat, 19 Jul 2003 01:59:56 GMT
From: Bob Walton <bwalton@rochester.rr.com>
Subject: Re: 
Message-Id: <3F18A600.3040306@rochester.rr.com>

Ron wrote:

> Tried this code get a server 500 error.
> 
> Anyone know what's wrong with it?
> 
> if $DayName eq "Select a Day" or $RouteName eq "Select A Route") {

(---^


>     dienice("Please use the back button on your browser to fill out the Day
> & Route fields.");
> }
 ...
> Ron

 ...
-- 
Bob Walton



------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 5569
***************************************


home help back first fref pref prev next nref lref last post