Re: interpolation

2006-01-15 Thread John Doe
The Ghost am Montag, 16. Januar 2006 06.34: > I am storing text stings in a database. when I have the string: > > 'some perl $variable' > > which would print as: > > some perl $variable > > how can I force interpolation of '$variable'? > > one idea I thought of was: > #!/usr/bin/perl > my $var='va

Re: about the var's scope

2006-01-15 Thread Jeff Pang
That's a good end for us all.Thanks for Shawn and John too. -Original Message- >From: John Doe <[EMAIL PROTECTED]> >Sent: Jan 16, 2006 2:09 PM >To: beginners@perl.org >Subject: Re: about the var's scope > >Shawn Corey am Montag, 16. Januar 2006 04.12: >> John Doe wrote: >> > [reordered to

Re: about the var's scope

2006-01-15 Thread John Doe
Shawn Corey am Montag, 16. Januar 2006 04.12: > John Doe wrote: > > [reordered to bottom style posting] > > > > Jeff Pang am Montag, 16. Januar 2006 01.59: > >>Thanks for Shawn.The main script can see the global var $q coming from > >>module,since the main script import this symbol via 'use My::HTM

Re: interpolation

2006-01-15 Thread The Ghost
I am storing text stings in a database. when I have the string: 'some perl $variable' which would print as: some perl $variable how can I force interpolation of '$variable'? one idea I thought of was: #!/usr/bin/perl my $var='variable'; $string='some $var'; $string=~s/\$(\w+)/${$1}/gi; prin

Re: about the var's scope

2006-01-15 Thread Shawn Corey
John Doe wrote: [reordered to bottom style posting] Jeff Pang am Montag, 16. Januar 2006 01.59: Thanks for Shawn.The main script can see the global var $q coming from module,since the main script import this symbol via 'use My::HTML qw($q)'.But the modules have no any importing behavior,why the

[Win32] Basic I/O Question

2006-01-15 Thread Hardly Armchair
Hello List, I am running Perl for Win32 and have been executing my programs through the 'cmd.exe' shell. I am confused about how to input paths to files in a command-line context so that perl will understand. Using the diamond operator (<>) in my programs allows me to type my program at the comm

Re: about the var's scope

2006-01-15 Thread Jeff Pang
John, These codes are written by famous mod_perl expert Stas Berkman,do you know it? You can find them at: http://www.perl.com/pub/a/2002/04/23/mod_perl.html?page=1 maybe you don't know them,but it don't mean that it is impossible.Hm... -Original Message- >From: John Doe <[EMAIL PROTECTED

Re: about the var's scope

2006-01-15 Thread John Doe
[reordered to bottom style posting] > -Original Message- > > >From: Shawn Corey <[EMAIL PROTECTED]> > >Sent: Jan 15, 2006 10:58 PM > >To: beginners@perl.org > >Subject: Re: about the var's scope > > > >Jeff Pang wrote: > >> Hello,lists, > >> > >> Seeing these code below please.I can't know

Re: contest software

2006-01-15 Thread Mike Blezien
I appologize for the obvious inappropritate post. was just looking for info, that's all. I am quiet aware what we need too do, but was just trying to find if something that may already be out there already available. Mike Chris Devers wrote: On Sun, 15 Jan 2006, Mike Blezien wrote: Brief d

Re: contest software

2006-01-15 Thread Chris Devers
On Sun, 15 Jan 2006, Mike Blezien wrote: > Brief description: > > something similar used on http://www.worth1000.com, designers will > submit an entry to a project, with his/her entry being completely > invisible to everyone but the website staff and the Client (Project > Holder). The project

[ANNOUNCE] PDF::ReportWriter-0.9

2006-01-15 Thread Dan
After much procrastinating and inactivity, I'm pleased to announce the next major release of PDF::ReportWriter PDF::ReportWriter is a part of the Axis Not Evil project, a suit of cross-platform Perl modules that combine to provide an alternative to a 'leading' software vendor's RAD design tool fo

[ANNOUNCE] Gtk2::Ex::Datasheet::DBI-2.0

2006-01-15 Thread Dan
After much procrastinating and inactivity, I'm pleased to announce the next major release of Gtk2::Ex::Datasheet::DBI Gtk2::Ex::Datasheet::DBI is a part of the Axis Not Evil project, a suit of cross-platform Perl modules that combine to provide an alternative to a 'leading' software vendor's RA

Re: about the var's scope

2006-01-15 Thread Jeff Pang
Thanks for Shawn.The main script can see the global var $q coming from module,since the main script import this symbol via 'use My::HTML qw($q)'.But the modules have no any importing behavior,why they can see the global var $q coming from main script?I'm really confused for that. -Original

Re: contest software

2006-01-15 Thread Shawn Corey
Mike Blezien wrote: Hello, we're looking for a good contest software written perl, for creating various types of contests. before we embark on building from the ground up, wanted too see if there any out there that may meet our needs. any feedback would be appreciated. TIA, Please write i

Re: contest software

2006-01-15 Thread Mike Blezien
Brief description: something similar used on http://www.worth1000.com, designers will submit an entry to a project, with his/her entry being completely invisible to everyone but the website staff and the Client (Project Holder). The project holder must then select a winning design. After a wi

Re: contest software

2006-01-15 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Blezien wrote: > Hello, > > we're looking for a good contest software written perl, for creating > various types of contests. before we embark on building from the ground > up, wanted too see if there any out there that may meet our needs. What

contest software

2006-01-15 Thread Mike Blezien
Hello, we're looking for a good contest software written perl, for creating various types of contests. before we embark on building from the ground up, wanted too see if there any out there that may meet our needs. any feedback would be appreciated. TIA, -- Mike(mickalo)Blezien -- To unsub

Re: assigning list to hash entry

2006-01-15 Thread Shawn Corey
Anders Stegmann wrote: Hi! how do I assign a list to a hash entry like $hash{$key}[0]. I mean, something like this: $hash{$key}[0] = @list; must work. Anders. Close. Try: use Data::Dumper; $hash{$key} = [ @list ]; print Dumper( \%hash ); -- Just my 0.0002 million dolla

assigning list to hash entry

2006-01-15 Thread Anders Stegmann
Hi! how do I assign a list to a hash entry like $hash{$key}[0]. I mean, something like this: $hash{$key}[0] = @list; must work. Anders.

Re: CLOSED? Re: Obtaining complete Unix command line that evoked script as string

2006-01-15 Thread JupiterHost.Net
Like a lot of things, there isn't one "right" way to it, the final choice depends on the project, the budget, time constraints, etc. I'm Writing a new shell is quick and cheap? working with shell and perl; it may not be ideal, but is a given. Personally, its silly to tell me I'm an idiot wi

Re: about the var's scope

2006-01-15 Thread Shawn Corey
Jeff Pang wrote: Hello,lists, Seeing these code below please.I can't know why the var defined in the main script can been accessed in the modules that used by the main script?thanks. From `perldoc vars`: While the vars pragma cannot duplicate the effect of package lexicals (total transparen

Re: interpolation

2006-01-15 Thread John Doe
The Ghost am Freitag, 13. Januar 2006 21.23: > I know I could do that, but what if I don't know the variable names > in the string? > > > $sql=~s/\$Status/$Status/; > > could I do: > $sql=~s/\$(\S+)/${$1}/; > > On Jan 10, 2006, at 5:57 PM, John Doe wrote: > > The Ghost am Dienstag, 10. Januar 2006

Re: problem extracting data with WWW::Mechanize whe

2006-01-15 Thread Ankur Gupta
On 1/15/06, Ankur Gupta <[EMAIL PROTECTED]> wrote: > Hi, > > I have a very simple WWW::Mechanize perl program which does the following > task. > 1. Gets the login URL. > 2. Enters username and password. > 3. Get another URL. > 4. Fill some fields of date range and submit. > 5. Parse the content an

about the var's scope

2006-01-15 Thread Jeff Pang
Hello,lists, Seeing these code below please.I can't know why the var defined in the main script can been accessed in the modules that used by the main script?thanks. script.pl: use vars qw($q); use CGI; use lib qw(.); use My::HTML qw($q); # My/HTML.pm is in the same

problem extracting data with WWW::Mechanize whe

2006-01-15 Thread Ankur Gupta
Hi, I have a very simple WWW::Mechanize perl program which does the following task. 1. Gets the login URL. 2. Enters username and password. 3. Get another URL. 4. Fill some fields of date range and submit. 5. Parse the content and create a report. It used to work until the web designer changed th