- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Why am I getting /par in my perl program output
Operating System - Microsoft
1823967
Members
4068
Online
109667
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2009 10:29 PM
тАО07-04-2009 10:29 PM
Why am I getting /par in my perl program output
Hi,
I have perl program whereI'm searching a file for certain lines and extracting a report.
The program is simple. I'm taking each line as input and matching whether it has what concerns me. The I split the line and feed it into an array and extract the particular array element.
For testing puproses,my input file is a .rtf file. Anyway, whenever the array element is the last in the line, it is suffixed with a /par in the output.
What does this mean. I tried chomp and chop before feeding the array, but no use there.
Looking forward to your support.
Thanks and Regards,
-Alvi
I have perl program whereI'm searching a file for certain lines and extracting a report.
The program is simple. I'm taking each line as input and matching whether it has what concerns me. The I split the line and feed it into an array and extract the particular array element.
For testing puproses,my input file is a .rtf file. Anyway, whenever the array element is the last in the line, it is suffixed with a /par in the output.
What does this mean. I tried chomp and chop before feeding the array, but no use there.
Looking forward to your support.
Thanks and Regards,
-Alvi
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2009 10:49 PM
тАО07-04-2009 10:49 PM
Re: Why am I getting /par in my perl program output
Hi,
I changed test format and used plain text. The /par doesn't occur anymore. Seems like something to do with a dfferent paragraph.
Regards,
-Alvi
I changed test format and used plain text. The /par doesn't occur anymore. Seems like something to do with a dfferent paragraph.
Regards,
-Alvi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2009 09:59 AM
тАО07-05-2009 09:59 AM
Re: Why am I getting /par in my perl program output
Shalom,
Your program is picking up codes in the rtf document.
If you want someone to help you fix your code, please provide it.
chomp and chop are fun to play with in perl and sometimes do not act as expected.
SEP
Your program is picking up codes in the rtf document.
If you want someone to help you fix your code, please provide it.
chomp and chop are fun to play with in perl and sometimes do not act as expected.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 07:37 AM
тАО07-06-2009 07:37 AM
Re: Why am I getting /par in my perl program output
Hi:
> SEP: If you want someone to help you fix your code, please provide it.
Yes, that would be very smart.
> SEP: chomp and chop are fun to play with in perl and sometimes do not act as expected.
Expletive deleted here. Perl's 'chop' and 'chomp' do _exactly_ what they are intended to do. It's the user's lack of understanding that causes unexpected behavior.
Regards!
...JRF...
> SEP: If you want someone to help you fix your code, please provide it.
Yes, that would be very smart.
> SEP: chomp and chop are fun to play with in perl and sometimes do not act as expected.
Expletive deleted here. Perl's 'chop' and 'chomp' do _exactly_ what they are intended to do. It's the user's lack of understanding that causes unexpected behavior.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP