Ask a Question related to PERL Beginners, Design and Development.
-
Trina Espinoza #1
012 and 015 eq \r and\n on what conversion chart?
tr/\012\015//d;
So a while back ago, there was someone kind enough to pass me the above snippet of code, which removes returns
and newlines from data attained by perl. It works great and I would like to find the conversion table that was used
so I can obtain the numbers to rid my code of other annoying characters ..
When I looked it up on the ascii conversion chart it said that the decimal equilvelent for 012 and 015 are ^J ^j LF lf linefeed c-J c-j \n and ^O ^o SI c-O c-o shift-in.
Can someone tell me what 012 and 015 represent if not \r and \n? Should I be looking at another type of conversion table?
Thanks!
-T
Trina Espinoza Guest
-
Refreshing chart data doesnt update chart
I must be missing something simple here. I have a column chart that is using an array for its dataprovider. However, when I update the underlying... -
Arraycollection conversion to chart data
I'm trying to get ArrayCollection mapped to an array using the Blazeds turnkey sample code. In the sqladmin example, they are creating a List... -
MS Excel Chart Conversion problem
I have used "Paste Special" then Paste as a Picture (Metafile) to insert Excel charts into a number of MS Word documents. PDF files are being created... -
Pantone colors to RGB conversion chart or palette?
What is the best method to get the RGB color equivalent numbers from a Pantone color/number. Is clicking on a Pantone color from a palette/swatch... -
RBG to CMYK Conversion Chart
Not to mention that there are 16.7 *million* colors possible in RGB. That would be some long "chart" :-) Mac -
Beau E. Cox #2
Re: 012 and 015 eq \r and\n on what conversion chart?
Hi -
Numeric literals beginning with '0' are OCTAL:
\012 == 000 001 010 == 0x0a == decimal 10.
Aloha => Beau;
== please visit ==
<http://beaucox.com> => main site
<http://howtos.beaucox.com> => howtos
<http://PPM.beaucox.com> => perl PPMs
<http://CPAN.beaucox.com> => CPAN
== thank you ==
----- Original Message -----
From: "Trina Espinoza" <trina@theorphanage.com>
To: <beginners@perl.org>
Sent: Wednesday, August 27, 2003 1:30 PM
Subject: 012 and 015 eq \r and\n on what conversion chart?
tr/\012\015//d;
So a while back ago, there was someone kind enough to pass me the above
snippet of code, which removes returns
and newlines from data attained by perl. It works great and I would like to
find the conversion table that was used
so I can obtain the numbers to rid my code of other annoying characters .
When I looked it up on the ascii conversion chart it said that the decimal
equilvelent for 012 and 015 are ^J ^j LF lf linefeed c-J c-j \n and ^O
^o SI c-O c-o shift-in.
Can someone tell me what 012 and 015 represent if not \r and \n? Should I be
looking at another type of conversion table?
Thanks!
-T
Beau E. Cox Guest
-
John W. Krahn #3
Re: 012 and 015 eq \r and\n on what conversion chart?
Trina Espinoza wrote:
According to ASCII, 015 is the carriage return character and 012 is the>
> tr/\012\015//d;
>
> So a while back ago, there was someone kind enough to pass me the
> above snippet of code, which removes returns and newlines from data
> attained by perl. It works great and I would like to find the
> conversion table that was used so I can obtain the numbers to rid
> my code of other annoying characters.
>
> When I looked it up on the ascii conversion chart it said that the
> decimal equilvelent for 012 and 015 are ^J ^j LF lf linefeed c-J
> c-j \n and ^O ^o SI c-O c-o shift-in.
>
> Can someone tell me what 012 and 015 represent if not \r and \n?
> Should I be looking at another type of conversion table?
line feed character. The \r and \n escape sequences represent carriage
return and line feed within perl itself but \n may be represented
differently in files depending on the OS and file system.
John
--
use Perl;
program
fulfillment
John W. Krahn Guest



Reply With Quote

