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
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
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
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
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
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
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
[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
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
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
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
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
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
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
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
-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
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
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
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.
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
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
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
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
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
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
25 matches
Mail list logo