my $s = ;
my $t = ;
conc ( $s , $t );
sub conc {
my $str = $_[0].$_[1];
print $str;
}
Why? It works allright only after add an extra line at the top, that is
sub conc;
its become just like C
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 5/1/07, Somu [EMAIL PROTECTED] wrote:
my $s = ;
my $t = ;
conc ( $s , $t );
sub conc {
my $str = $_[0].$_[1];
print $str;
}
Why?
Why not?
It works allright only after add an extra line at the top, that is
sub conc;
its become just like C
Are you asking a question? Perhaps
On 5/1/07, Chas Owens [EMAIL PROTECTED] wrote:
On 5/1/07, Somu [EMAIL PROTECTED] wrote:
my $s = ;
my $t = ;
conc ( $s , $t );
sub conc {
my $str = $_[0].$_[1];
print $str;
}
Why? It works allright only after add an extra line at the top, that is
sub conc;
its become just
On 5/1/07, Somu [EMAIL PROTECTED] wrote:
my $s = ;
my $t = ;
conc ( $s , $t );
sub conc {
my $str = $_[0].$_[1];
print $str;
}
Why? It works allright only after add an extra line at the top, that is
sub conc;
its become just like C
Your code works just fine for me (no errors).
Actually, that was just an example to explain my problem. I am facing
this problem when i use Tk. Any subroutine associated with the
-command option of a button widget.
use Tk;
my $mw = MainWindow-new;
my $b = $mw-Button(-text='hello',-command=sub { welcome })-pack;
my $l =
Because if define it, it says 'Global variable $l needs...' what do
i do? Actually, i am not happy nor sad that the subroutine needed a
declaration before use.. I'm using ActivePerl 5.8.8 on Windows XP
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Somu wrote:
Actually, that was just an example to explain my problem. I am facing
this problem when i use Tk. Any subroutine associated with the
-command option of a button widget.
use Tk;
my $mw = MainWindow-new;
my $b = $mw-Button(-text='hello',-command=sub { welcome })-pack;
my $l =
On 5/1/07, Somu [EMAIL PROTECTED] wrote:
Actually, that was just an example to explain my problem. I am facing
this problem when i use Tk. Any subroutine associated with the
-command option of a button widget.
use Tk;
my $mw = MainWindow-new;
my $b = $mw-Button(-text='hello',-command=sub {