[oclug]Really basic Perl help
Dana Webber
dana at dunrobin.dyn.dhs.org
Sat Jan 4 14:47:45 EST 2003
( /Three/../Three/ )
this is an array. So $a is getting it's data type changed from string and you
are seeing some pointer adresses.
try using "marks to make a string like,
$a = $a . "( /Three/../Three/ ) ";
----------------------------------------
Can somebody take a look at this and explain the results to me? I'm
obviously not reading this documentation right... Please keep in mind I'm no
programmer...
Brian
------ This is my perl script
#!/usr/bin/perl -wT
my $a;
$a="Opening Info \n";
open (DATA, 'data.txt') || die "Couldn't open data : $!";
while (<DATA>) {
$a = $a.( /Three/../Three/ ) ;
}
print "$a \n";
close (DATA);
----- Ends here
---- This is contents of data.txt
Line One with stuff
Line Two with other stuff
Line Three Various text I want
Three
----
Why the heck to I get
Opening Info
1E01E0
More information about the OCLUG
mailing list