Hello,
my $Data = Hello, i am a litte String.$ Please format me.$$$ I am the end
of the String.$$ And i am the last!
The regex should replace $ with the string br, $$ with p and $$$ with
brbr (please don't think about the why)
If tried to use the following:
$data =~ s/\$\$\$/brbr/gm; #should
Timothy,
How about this:
print $char x $number_of_chars . \n for 1..$number_of_lines;
that's another way to do it. Thanks for the hint. This looks a little
more smarter than the other solution, but that's only my opinion. I find
it more readable.
Thanks
Karl-Heinz
Suresh,
Why not use brackets?:
print (($char x $number_of_chars . \n ) x $number_of_lines, \n);
that's one way to do it. I did not set the outer brackets. :-*
Thanks
Karl-Heinz
___
Perl-Win32-Users mailing list
Hi,
I've got the following problem:
use strict;
use warnings;
my $char = -;
my $number_of_lines = 3;
my $number_of_chars = 20;
print This is the output I want: \n;
my $line = $char x $number_of_chars . \n;
print $line x $number_of_lines, \n;
# I do not want to use the var $line. So how to
Hi Markus,
I’m looking for a way to call an external program and get back the
result in an array without seeing anything on the STDOUT.
If ‘m using in example
$path = “\\”;
$result = system(“dir”, $path);
I can see the output on the STDOUT but I can’t find a way to put it in
an array
Dear Bill and the others,
You can't set $foo_token (or $foo_token_dir ) to $ENV{ FOO_TOKEN}.
The value ot the variable has to be %%FOO_TOKEN%_DIR%.
What you set in the BAT file was :
FOO_TOKEN=BAR
BAR_DIR=c:\bar
So the only ENV vrbls available are FOO_TOKEN and BAR.
The %'s
Hi,
first time I answer myself ;-). Here's my solution:
I cut off the cmd-file for the example and set the env var in the
script. After all, the value of the env var %%FOO_TOKEN%_DIR% will be
created without using the env vars FOO_TOKEN or BAR_DIR directly.
The idea was to use the system
List,
if I start a script (code at the end of the mail) with a correct/incorrect
smpt server address I get the following output:
Output correct smpt-server address:
D:\tempperl -w send_mail.pl
Send mail...
OK - RC: 0
Output incorrect smpt-sever address:
D:\tempperl -w send_mail.pl
Send mail...
I have a problem with use strict:
There are two files. The file test_template.pl calls the file test_modul.pl
via a variable. I read this file name from an ini-file. But for the example
I wrote it into a variable ($modul).
File: test_template.pl:
use strict;
my $Simulation = y;
my $modul =