do you use double quotes to interpolate the string ?
Octavian Rasnita wrote:
Hi all,
I have a text file that contains a text something like this:
This text contains a $aa variable and a $bb variable and a $cc one.
My program reads this text and I want to replace the variables with their
value
looks like a gcc provblem (cast error).
I'm used to downgrade to gcc-2.95 when I see such errors.
Frederic MARTIN wrote:
Hi,
I'm trying to use a perl script which need GD, GDGraph, GDGraph3d and
GDTextUtil.
I found already some messages in the archives of this mailing list ans
especially the
hi,
you can simulate the ls and the grep commands in perl
with opendir/readdir and regexp
#
#!/usr/bin/perl -w
my $count=0;
my $file='none';
opendir(READDIR,'/tmp') or die "can't open dir : $!\n";
while ( defined($file = readdir(READDIR)) ) {
if ($file =~ /\.dpx/){
$
hi,
$name_with_id looks like a comma separated list
you can simply *not tested*:
($name,$id) = split (/,/, $name_with_id)
--
franck
Sara wrote:
An input string like;
$name_with_id = "Deiley, Sara Jr., 1234";
another example could be
$name_with_id = "DEILEY SARA, Jr,. 123";
Two things are fo
you can go there
http://learn.perl.org/
http://perldoc.com/
or search deeper in the google 'arcanes'
for some (quite) illegal online books...
Anthoni wrote:
> Hi there,
>
> Can anyone point me to some good resources for learning perl?
> I have the book Javascript, CGI and Perl, but want some on