LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-03-2007, 01:34 PM   #1
Musikolo
Member
 
Registered: Jul 2003
Distribution: Arch Linux x64
Posts: 115

Rep: Reputation: 15
Exclamation perl expert wanted


Hi mates,

I'm a Yoper packager having an old issue with our perl package. Somehow it turns we have a bug so when we execute next, we get a leading blank (space):

http://yoper.pastebin.no/1282

This is causing other package builds to fail. Just in case it maybe give you some information, it was built with the following options: http://yoper.pastebin.no/1284

Here you also have the /usr/lib/perl5/5.8.8/i686-linux-thread-multi/Config.pm file fully: http://yoper.pastebin.no/1283

Any help greatly appreciated!
 
Old 04-03-2007, 03:07 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Not quite sure what you're after, but it seems like you want to remove a leading space from a value.

Try this sed when you're defining that var in your perl program

$var = (whatever you have assigned first, with the blank);
$var =~ s/^\s+//;

Now $textvar will be missing the leading character.

There are other ways to do things, but that will work.
 
Old 04-03-2007, 04:20 PM   #3
Musikolo
Member
 
Registered: Jul 2003
Distribution: Arch Linux x64
Posts: 115

Original Poster
Rep: Reputation: 15
Hi TB0ne,

thanks for your reply. I think I've found the solution to my problem on my own. I was building perl using the -A switch instead of -D. The former adds a blank space while the latter does not. Please, have a look at the next link for more details: http://sial.org/pbot/23975

Best regards!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need an expert BookMaker Linux - Newbie 6 07-09-2005 08:03 PM
need an expert for this one jjd228 Linux - Software 22 08-19-2004 12:51 AM
TeX/LaTeX Expert Trainers Wanted express General 1 05-17-2004 05:34 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
Expert Please eckomark Linux - Newbie 6 11-11-2001 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration