Re: Getting the values of some variables

2004-04-15 Thread frbn
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

Re: Can't locate GD.pm in @INC + cpan> install GD problems???

2004-02-11 Thread frbn
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

Re: not so grep on windows

2003-10-14 Thread frbn
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/){ $

Re: split function problem.

2003-07-08 Thread frbn
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

Re: Online Resources

2003-02-04 Thread frbn
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