Re: Very Annoying Perl Quick - Please Help!

Discussion in 'Perl' started by Eric J. Roode, Jul 19, 2003.

  1. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    "Robert V" <> wrote in
    news:rjZRa.483748$:

    > Hey all, i'm having problems figuring out this perl quirk. See this
    > very basic sample code:
    >
    > open (rebound, "<rebound.txt");
    > flock rebound, 2;
    > @rebound=<rebound>;
    > close(rebound);

    ....
    > --- When I use the command "print @rebound;" This is what I get:

    ....
    > --- Notice the indentations on all new lines except the first... a
    > full spacebar space ... this is a very big deal for me as it's causing
    > problems. Funny thing is if I print @rebound back to rebound.txt,
    > those white space indentations arent there? Can anyone help me get rid
    > of these when printing. Thanx!


    1. Your question is Frequently Asked. Please check the perl FAQ before
    posting.

    2. This newsgroup is defunct. For your future reference, general perl
    questions should be asked in comp.lang.perl.misc.

    - --
    Eric
    $_ = reverse sort qw p ekca lre Js reh ts
    p, $/.r, map $_.$", qw e p h tona e; print

    -----BEGIN PGP SIGNATURE-----
    Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

    iQA/AwUBPxlgqWPeouIeTNHoEQIO/ACaAnqiUQbAfkWGmJHXey6Epf7NZtsAniRz
    ZNNCAPDwvVx2l/uiIwf/mhOc
    =LdEF
    -----END PGP SIGNATURE-----
    Eric J. Roode, Jul 19, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    444
    Raymond Hettinger
    Jul 27, 2003
  2. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,582
    Merrill & Michele
    Oct 19, 2004
  3. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    405
    jacob navia
    Oct 17, 2004
  4. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    492
    Dave Thompson
    Feb 14, 2005
  5. olivier.melcher

    Help running a very very very simple code

    olivier.melcher, May 12, 2008, in forum: Java
    Replies:
    8
    Views:
    2,238
Loading...

Share This Page