LinuxQuestions.org
Review your favorite Linux distribution.
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, 02:34 PM   #1
Musikolo
Member
 
Registered: Jul 2003
Distribution: Yoper 2.91 beta (kernel 2.6.15)
Posts: 114

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, 04:07 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,989

Rep: Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672
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, 05:20 PM   #3
Musikolo
Member
 
Registered: Jul 2003
Distribution: Yoper 2.91 beta (kernel 2.6.15)
Posts: 114

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:03 PM
need an expert for this one jjd228 Linux - Software 22 08-19-2004 01:51 AM
TeX/LaTeX Expert Trainers Wanted express General 1 05-17-2004 06:34 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM
Expert Please eckomark Linux - Newbie 6 11-11-2001 01:06 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration