>-Original Message-
>From: Chris Stinemetz [mailto:chrisstinem...@gmail.com]
>Sent: Friday, June 08, 2012 14:58
>To: lina
>Cc: beginners@perl.org
>Subject: Re: how to print certain field out
>
>On Fri, Jun 8, 2012 at 11:44 AM, lina wrote:
>> On Sat, Jun 9,
On Fri, Jun 8, 2012 at 11:44 AM, lina wrote:
> On Sat, Jun 9, 2012 at 12:16 AM, lina wrote:
>> Hi,
>>
>> Here is the to-be-processed file,
>>
>> $ more try
>> # RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->O O-->H-N
>> N-H-->O O-->H-N TCO KAPPA ALPHA PHI PSI X-CA Y-CA
>> Z-CA
>
On Jun 8, 2012, at 9:16 AM, lina wrote:
> Hi,
>
> Here is the to-be-processed file,
>
> $ more try
> # RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->OO-->H-N
> N-H-->OO-->H-NTCO KAPPA ALPHA PHI PSIX-CA Y-CA
> Z-CA
>1 174 V 0 00 0, 0.0 2,-
On 08/06/2012 17:16, lina wrote:
Hi,
Here is the to-be-processed file,
$ more try
# RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->OO-->H-N
N-H-->OO-->H-NTCO KAPPA ALPHA PHI PSIX-CA Y-CA
Z-CA
1 174 V 0 00 0, 0.0 2,-0.3 0,
0.0 0,
On Sat, Jun 9, 2012 at 12:16 AM, lina wrote:
> Hi,
>
> Here is the to-be-processed file,
>
> $ more try
> # RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->O O-->H-N
> N-H-->O O-->H-N TCO KAPPA ALPHA PHI PSI X-CA Y-CA
> Z-CA
> 1 174 V 0 0 0 0, 0.0 2
Hi,
Here is the to-be-processed file,
$ more try
# RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->OO-->H-N
N-H-->OO-->H-NTCO KAPPA ALPHA PHI PSIX-CA Y-CA
Z-CA
1 174 V 0 00 0, 0.0 2,-0.3 0,
0.0 0, 0.0 0.000 360.0 360.0 360.0 137.8
Hi!
That will work for a small number of files. If you want to automate the
process, then you need to either convert the HTML to a printer-ready file,
or automate sending the file to a browser.
A very crude (but quite effective) way is to use the X11::GUITest or
Win32::GuiTest module.
You w
boll wrote:
Is there a module that will create printable HTML,
Look into WebKit.
(and Titanium, while you are at it)
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Jim Gibson wrote:
On 2/24/10 Wed Feb 24, 2010 11:49 AM, "boll" scribbled:
Hello-
I am hoping there is a way to print HTML documents from a perl script.
#!/usr/bin/perl -w
use strict;
use warnings;
print "Content-Type: text/html\n\n";
open HTML, "table_one.html" or
On 2/24/10 Wed Feb 24, 2010 11:49 AM, "boll" scribbled:
> Hello-
>
> I am hoping there is a way to print HTML documents from a perl script.
>
> #!/usr/bin/perl -w
> use strict;
> use warnings;
> print "Content-Type: text/html\n\n";
> open HTML, "table_one.html" or die $!;
boll wrote:
> This displays the HTML code in the terminal window, but I need to
> produce the rendered page on a printer.
> Is there a module that will create printable HTML,
> or maybe a system or exec command that will print the documents?
>
> These are plain HTML tables, so I don't need beautif
Hello-
I am hoping there is a way to print HTML documents from a perl script.
#!/usr/bin/perl -w
use strict;
use warnings;
print "Content-Type: text/html\n\n";
open HTML, "table_one.html" or die $!;
while( ) {
print;
}
close HTML;
This displays the HTML code in t
Hello !
here my hint :
#!/usr/bin/perl
use strict;
use warnings;
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init(
{
file => ">> my_error_log",
level => $ERROR,
},
{
file => "STDERR",
level => $ERROR,
}
);
For more informations see http://log4perl.sourceforge.net
Stéphane
>>
pa...@compugenic.com wrote:
> On Wed, Jun 24, 2009 at 09:41:10PM +0400, Roman Makurin wrote:
>> On Wed, Jun 24, 2009 at 09:25:05AM -0700, pa...@compugenic.com wrote:
>> > I'd like to automatically have my script's errors and warnings sent to
>> > both STDOUT (console) and a log file. What is the p
Hi Pablo,
pa...@compugenic.com wrote:
STDERR is where errors go. Error messages are generated as a result of
an error, not a 'print' statement. Athough I could manually print to
STDERR, I'm trying to log all errors to both a logfile and STDERR.
Hm, not quite sure what you mean. Error
On Wed, Jun 24, 2009 at 09:41:10PM +0400, Roman Makurin wrote:
> On Wed, Jun 24, 2009 at 09:25:05AM -0700, pa...@compugenic.com wrote:
> > I'd like to automatically have my script's errors and warnings sent to
> > both STDOUT (console) and a log file. What is the proper way of doing this?
>
> pri
On Wed, Jun 24, 2009 at 09:25:05AM -0700, pa...@compugenic.com wrote:
> I'd like to automatically have my script's errors and warnings sent to
> both STDOUT (console) and a log file. What is the proper way of doing this?
print STDERR mess;
print FILEHANDLE mess;
>
> Pablo
>
> --
> To unsubsc
I'd like to automatically have my script's errors and warnings sent to
both STDOUT (console) and a log file. What is the proper way of doing this?
Pablo
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
itshardtogetone wrote:
> How do I print the % sign when using printf.
RTFM. See for example: perldoc -f printf, which should point you to the
sprintf doc.
It is even the first mentioned conversion there.
The doc is on a thingy called "the web" too:
http://perldoc.perl.org/functions/sprintf.html
2009/2/7 itshardtogetone :
> Hi,
> How do I print the % sign when using printf.
use another % to escape it.
--
Jeff Peng
Office: +86-20-38350822
AIM: jeffpang
www.dtonenetworks.com
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.
Hi,
How do I print the % sign when using printf.
I did the following which produced the following error "illegal conversion in
printf "%)" at line 185"
printf ("Total $total_number_of_bets\(%4.2f\%\)
times.\n",$percentage_total_number_of_bets);
Thanks
From: mAyur <[EMAIL PROTECTED]>
> By the way, newBee, I have doubt abt ur code is it working? I am just
> printing ur code again, with line numbers
Are you trying to be kewl or just can't spell? "abt"? "ur"?
> 1: foreach $document(@documents){
> 2: $valueOfTermD = 0;
> 3: $powerO
On Oct 26, 6:07 am, [EMAIL PROTECTED] (newBee) wrote:
> I have the fallowing code segment in my code. I want to print my
>
> foreach $document(@documents){
> $valueOfTermD = 0;
> $powerOfTermD = 0;
> foreach $term(keys %termWeightHash){
> if($termWeightHash{$
I have the fallowing code segment in my code. I want to print my
foreach $document(@documents){
$valueOfTermD = 0;
$powerOfTermD = 0;
foreach $term(keys %termWeightHash){
if($termWeightHash{$term}{$document}){
$powerOfTermD = $powerOf
On 10/26/07, newBee <[EMAIL PROTECTED]> wrote:
> I have the fallowing code segment in my code. I want to print my
> %termWeightHash to see if i have correct data at the end of the this
> computation. Since this hash has two keys(I guess way to think that is
> hash within) I
I have the fallowing code segment in my code. I want to print my
%termWeightHash to see if i have correct data at the end of the this
computation. Since this hash has two keys(I guess way to think that is
hash within) I am not sure how to print it..
regular one key has i could print like this
thanks all,
the different ways suggested by you gave me a lot of learning.
regards,
Mihir
On 11/5/06, Robin Norwood <[EMAIL PROTECTED]> wrote:
"Mihir Kamdar" <[EMAIL PROTECTED]> writes:
> 1. (*) text/plain
>
> hi,
>
> I am a beginner in Perl. I am trying to automatically generate a perl
tes
"Mihir Kamdar" <[EMAIL PROTECTED]> writes:
> 1. (*) text/plain
>
> hi,
>
> I am a beginner in Perl. I am trying to automatically generate a perl test
> case file which, on executing, would return HTTP response code and response
> time,etc. In the output file that I am getting I want the
"Dr.Ruud" schreef:
> Or set a variable like $LF to '\n'.
>
> my $LF = q{\n} ;
> print $script "print q{${^O}${LF}};\n" ;
Oops, make that last line:
print $script "print qq{$^O$LF};\n" ;
or, if you need the late OS-name:
print $script "print qq{\${^O}${LF}};\n" ;
--
Affijn, Ruud
"
"Mihir Kamdar" schreef:
> print OUTPUTSCRIPT "print qq|\\n|; ";
Alternative:
print OUTPUTSCRIPT 'print q{\n}; ' ;
Why do you print a space at the end of the line?
If you need interpolation, use the "" (or qq).
print $script "print q{$^O\\n};\n" ;
Or set a variable like $LF to '\n'.
Mihir Kamdar wrote:
hi,
I am a beginner in Perl. I am trying to automatically generate a perl test
case file which, on executing, would return HTTP response code and response
time,etc. In the output file that I am getting I want the following line:
print "\n" ;
Any Suggestions??
print 'print
thanks to all,
i was able to solve the problem with your guidance. The code below worked
for me:
print OUTPUTSCRIPT "print qq|\\n|; ";
Now I want to calculate the response time that web server took for a
particular request(GET/POST). My output script is something like the
following:
my $req20
--- Mazhar <[EMAIL PROTECTED]> wrote:
> On 11/4/06, Mihir Kamdar <[EMAIL PROTECTED]>
> wrote:
> >
> > hi,
> >
> > I am a beginner in Perl. I am trying to
> automatically generate a perl test
> > case file which, on executing, would return HTTP
> response code and
> > response
> > time,etc. In the
On 11/4/06, Mihir Kamdar <[EMAIL PROTECTED]> wrote:
hi,
I am a beginner in Perl. I am trying to automatically generate a perl test
case file which, on executing, would return HTTP response code and
response
time,etc. In the output file that I am getting I want the following line:
print "\n" ;
hi,
I am a beginner in Perl. I am trying to automatically generate a perl test
case file which, on executing, would return HTTP response code and response
time,etc. In the output file that I am getting I want the following line:
print "\n" ;
Any Suggestions??
thanks,
Mihir
heena s wrote:
> i need to timestamp the datas.
> i am usingperl in windows machine.
>
> tell me how print the time in file.
Do you want just the time or the complete date?
my $today = localtime;
print "$today\n";
Or if you need better formatting:
use POSIX 'strftime';
my $today = strftime
November 08, 2005 12:44 PM
To: begineers perl
Subject: how to print " time " ???
i need to timestamp the datas.
i am usingperl in windows machine.
tell me how print the time in file.
thanks,
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail
> > Copyright 1987-2001, Larry Wall
> > Perl may be copied only under the terms of either the Artistic License
> or
> > the
> > GNU General Public License, which may be found in the Perl 5 source kit.
> > Complete documentation for Perl, including FAQ lists, shou
ubject: Re: how to print " time " ???
i am with windows 2000advance server..
and now iam downloading the "Activeperl"
what is the difference b\w AS package and MSI ??>
perl' or `perldoc perl'. If you have access to the
> Internet, point your browser at http://www.perl.com/, the Perl Home Page.
>
> C:\>perldoc -f time
> 'perldoc' is not recognized as an internal or external command,
> operable program or batch file.
> C:\&g
me
> 'perldoc' is not recognized as an internal or external command,
> operable program or batch file.
> C:\>
>
> Timothy Johnson <[EMAIL PROTECTED]> wrote:
>
> Check out the documentation for time() and localtime()
>
> perldoc -f time
> perldoc -f
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 08, 2005 11:57 AM
To: Timothy Johnson
Subject: RE: how to print " time " ???
perldoc not working... copy n pasted the cmd prompt
C:\>perl -version
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
Copyright 198
TECTED]
Sent: Tuesday, November 08, 2005 11:44 AM
To: begineers perl
Subject: how to print " time " ???
i need to timestamp the datas.
i am usingperl in windows machine.
tell me how print the time in file.
thanks,
__
Do You Yahoo!?
Check out the documentation for time() and localtime()
perldoc -f time
perldoc -f localtime
-Original Message-
From: heena s [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 08, 2005 11:44 AM
To: begineers perl
Subject: how to print " time " ???
i need to timestamp the d
i need to timestamp the datas.
i am usingperl in windows machine.
tell me how print the time in file.
thanks,
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From: "R.MURUGAVEL" <[EMAIL PROTECTED]>
> I am new to this group, I have one problem that is how
> to print pdf files to the particular printer installed
> our system/network systems.
>
> If any one helps me a very great help for me urgent
> Pl?
T
On Tue, 24 Aug 2004, R.MURUGAVEL wrote:
Good morning All!
I am new to this group, I have one problem that is how
to print pdf files to the particular printer installed
our system/network systems.
If any one helps me a very great help for me urgent
Pl?
Does this have something to do with Perl
Hi,
Good morning All!
I am new to this group, I have one problem that is how
to print pdf files to the particular printer installed
our system/network systems.
If any one helps me a very great help for me urgent
Pl?
Regards
Murugavel R
__
Do
2:176:194:1:
A start.
Wags ;)
> In web, perl print some strange char.
> So, how to print this information?
> Thanks a lot.
>
>
> Best Regards.
Any questions and/or problems, please let me k
In web, perl print some strange char.
So, how to print this information?
Thanks a lot.
Best Regards.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
Hey everyone,
For debugging purpose, is there anyway to print out
all the HTTP header information to the browser?
I am setting up an development evnironment by talking
to http://localhost/myapplication/, and I thought
I would need to look up the HTTP infomation.
By doing so, I can trace the
Stephan Hochhaus wrote:
> Hello list,
>
> I tried to dig my way through my newly acquired Perl ina nutshell and
> Learning Perl, but I couldn't find a satisfying solution to my
> problem:
>
> How can I print the last modification date of a file? It should work
> on different systems (*nix and OS
Hello list,
I tried to dig my way through my newly acquired Perl ina nutshell and
Learning Perl, but I couldn't find a satisfying solution to my problem:
How can I print the last modification date of a file? It should work on
different systems (*nix and OS X, Win32 is nice to have but not a mu
On Dec 10, 2003, at 8:25 AM, usef wrote:
Thank you guys for quick answers,
What if I want to print a "..." and calculate the percentage and
amount of
currently downloaded size during the download process? (wget style),
should
I create another process to do that? or is there any other
alternati
>What if I want to print a "..." and calculate the percentage and amount of
>currently downloaded size during the download process? (wget style), should
>I create another process to do that? or is there any other alternative? (I
>will choose the later).
I chatted about this in my book, SPIDERING HA
Thank you guys for quick answers,
What if I want to print a "..." and calculate the percentage and amount of
currently downloaded size during the download process? (wget style), should
I create another process to do that? or is there any other alternative? (I
will choose the later).
Thanks -u
-
Thank you! The separating comma was what I was leaving out. Also, I
wanted to actually print the variable name, so I escaped the $ symbol.
Deb
On Wednesday, June 4, 2003, at 12:00 PM, James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 11:47 AM, deborah wrote:
Example: I want to print
How do you get Perl to print an operator as a string? I want to print a
mathematical expression and then print the answer. I've tried every
combination that I can think of, but the script keeps getting aborted
"due to compilation errors" because "string found where operator
expected." Well, yea
[multi-posted to beginners & beginners-cgi]
Hi,
Re: my query -
>I'm writing a simple file-upload Perl script. I have all the form and file handling
>stuff done.
>I want the script to write an HTML message to the user's browser before the upload
>begins, you know, like "Upload in progress". Then
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Randal L. Schwartz) writes:
>No, please read the original question a bit more carefully. Martin
>wants some sort of activity to occur as a result of the beginning and
>ending of a POST containing a file-upload. Since the browser starts
>the POST
PMFJI:
Martin> I'm writing a simple file upload script. I have all the form
Martin> and file handling stuff done. I want the script to write an
Martin> HTML message to the user browser before the upload begins, you
Martin> know, like "Upload in progress". Then when the upload
Martin> completes, I
> "Peter" == Peter Scott <[EMAIL PROTECTED]> writes:
Peter> In article <[EMAIL PROTECTED]>,
Peter> [EMAIL PROTECTED] (Randal L. Schwartz) writes:
>>> "Martin" == Martin Lomas <[EMAIL PROTECTED]> writes:
Martin> I'm writing a simple file upload script. I have all the form
Martin> and file
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Randal L. Schwartz) writes:
>> "Martin" == Martin Lomas <[EMAIL PROTECTED]> writes:
>Martin> I'm writing a simple file upload script. I have all the form
>Martin> and file handling stuff done. I want the script to write an
>Martin> HTML messag
> "Martin" == Martin Lomas <[EMAIL PROTECTED]> writes:
Martin> Hello All,
Martin> I'm so glad to have found this list! I've searched all over about the
following with no luck:
Maybe if you were even luckier, you would have found the
perl-beginners-cgi list instead.
Martin> I'm writing a sim
Hello All,
I'm so glad to have found this list! I've searched all over about the following with
no luck:
I'm writing a simple file upload script. I have all the form and file handling stuff
done. I want the script to write an HTML message to the user browser before the upload
begins, you know,
R. Joseph Newton wrote:
> "...
> foreach(1..$total_elements){
> print "\t\[$_\] my $input[$_ - 1 ]\n";
> }
> ...Why did scalar $input in the foreach loop
> "works" without predeclaring it with my?" --Eri
>
> HI Eri,
>
> The my is probably not doing what you think it is. Otherwise
> it would
"...
foreach(1..$total_elements){
print "\t\[$_\] my $input[$_ - 1 ]\n";
}
...Why did scalar $input in the foreach loop
"works" without predeclaring it with my?" --Eri
HI Eri,
The my is probably not doing what you think it is. Otherwise it would constitute a
redeclaration error. My guess
Eri Mendz wrote:
>
> Dear All,
>
> I'm greatly overwhelmed by your quick help to my problem.
> Here's the corrected code:
>
> #!/usr/bin/perl -w
> use strict;
>
> # filename: reverse_string.pl
> # editor: # VIM - Vi IMproved 6.1
> # description: get user input and reverse input
>
> print "Plea
"Eri Mendz" <[EMAIL PROTECTED]> wrote in message
3E2D45F0.14555.14A0579@localhost">news:3E2D45F0.14555.14A0579@localhost...
> chomp(my @input = );
> my $total_elements = scalar(@input);
Assigning to a scalar variable puts the right-hand-side in scalar
context anyway.
my $total_elements = @in
Dear All,
I'm greatly overwhelmed by your quick help to my problem.
Here's the corrected code:
#!/usr/bin/perl -w
use strict;
# filename: reverse_string.pl
# editor: # VIM - Vi IMproved 6.1
# description: get user input and reverse input
print "Please enter any string, to quit press Ctrl-Z:\
Eri Mendez wrote:
> hi all,
>
> another newbie here. im having problem how to print to stdout the
> string[s] entered by user and appending a subscript integer after that
> string. this is my modification to exercise 1 chapter 3 of Llama book:
>
> #!/usr/bin/perl -w
> use
Eri Mendez wrote:
>
> hi all,
Hello,
> another newbie here. im having problem how to print to stdout the
> string[s] entered by user and appending a subscript integer after that
> string. this is my modification to exercise 1 chapter 3 of Llama book:
>
> #!/usr/bin
"print "\t\[", $_, "\] $_\n";"
Hi Eri,
I would suggest dispensing with the comma operators. They can have some rather
unexpected effects in this context. Remember--variables within full quotes are
interpolated before the string is taken. So you could write the above as:
print "\t\[$_
Eri Mendez wrote:
> hi all,
>
> another newbie here. im having problem how to print to stdout the
> string[s] entered by user and appending a subscript integer after that
> string. this is my modification to exercise 1 chapter 3 of Llama book:
>
> #!/usr/bin/perl -w
> use
hi all,
another newbie here. im having problem how to print to stdout the
string[s] entered by user and appending a subscript integer after that
string. this is my modification to exercise 1 chapter 3 of Llama book:
#!/usr/bin/perl -w
use strict;
# filename: reverse_string.pl
# editor: # VIM
Nachricht-
Von: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 9. Juli 2002 15:35
An: '[EMAIL PROTECTED]'; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Betreff: RE: how to print out a variable if theres a . in it?
print "Yeeehaaa: $_[0] \n";
would be more correct
[mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 8:10 AM
> To: '[EMAIL PROTECTED]'
> Subject: how to print out a variable if theres a . in it?
>
>
> Hello List,
>
> I have a (probably) simple problem:
>
> I´am parsing trough a directory an
change the line
print "Yeeehaaa: $_ \n";
to
print "Yeeehaaa: $SNR_LOG \n";
and it will work fine.
-Original Message-
From: Theuerkorn Johannes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 8:10 AM
To: '[EMAIL PROTECTED]'
Subject: how to print out
Hello List,
I have a (probably) simple problem:
I´am parsing trough a directory an want to print out every filename that exists.
(later I want to open those files)
Problem is, i have filenames like snr_log.csv,repact.csv,,foo.csv,bar.csv all with a
period in between...
What I get is an error
array
foreach (@inputarray) {print}
__EOF__
-Original Message-
From: Vitali [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 6:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: How to print firstly Raport page ,and after data from input
file
Dear friends!
Please
Dear friends!
Please consult me!
How I must change the code ,so that "Raport page" prints on the begining of
file,not in the end?
Code reads the lines,count $env and $page and print those to the report
page...
Thank you,
VItali Pokrovski
--
Here is input file:
10Arve
Hi All
In the below script we can print event details into console window by
debug_spin(1).
Now how can I print those event details in a text file ?
__
use strict;
use Win32::OLE;
use Win32::ActAcc;
sub main
{
print "\n"."a
Hi All
In the below script we can print event details into console window by
debug_spin(1).
Now how can I print those event details ina text file ?
__
use strict;
use Win32::OLE;
use Win32::ActAcc;
sub main
{
print "\n"."aa
d also run PerlScript client side (assuming everyone has PerlScript
installed), or build an ActiveX control. ...But I don't think that is what
you were looking for.
Rob
-Original Message-
From: Jerry Preston [mailto:[EMAIL PROTECTED]]
Subject: Re: how to print
Hi,
The user'
Hi,
The user's will be using PC's running NT 4.0 when running the scripts.
Thanks Again for Your HELP!!
Jerry
Jerry Preston wrote:
> Hi,
>
> I am using Perl with CGI on a SUN box. I want to be able to send to the
> local user running my script a report directly to their printer. What
> is i
Hi,
I am using Perl with CGI on a SUN box. I want to be able to send to the
local user running my script a report directly to their printer. What
is involved? What does Perl have to support this?
Thanks,
Jerry
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Jorge Goncalvez wrote:
>
> Hi, I have this:
> print NOUVEAU $newline2\n or die "je ne peux écrire dans $nouveau : $!\n";
>
> But it prints but didn't go to the next line(\n seems to be ignored)
> Why?
The newline needs to be in quotes to be interpolated
print NOUVEAU "$newline2\n" or die "je
That's because the backslash character is also the escape character. If
you want to print the string
$string (where $string is NOT a variable)
you write
print "\$string"; # prints $string
In your code below, you've escaped the closing quote, and therefore you
don't tell Perl where the string e
my print '\'; string give me:
Can't find string terminator "'" anywere befor EOF at ./file line 2.
How i may print that symbol ? Perl running on Linux console.
89 matches
Mail list logo