in reply to printing is not printing the full string

Just a hunch... maybe your data contains both carriage returns and line feeds, and you're only removing the line feeds?

So the last character of $schema_migration[3] puts the cursor back to the left, causing the : to overwrite the 'o' of 'out'

Replies are listed 'Best First'.
Re^2: printing is not printing the full string
by greatshots (Pilgrim) on Oct 30, 2006 at 03:48 UTC
    thanks a lot Crackers.
    # buffering the newschema { @schema_migration = <SMI>; map { $_ =~ s/[\n\r]//g } @schema_migration; } print "\n"; print "\nout :$schema_migration[3]:\n"; exit;
    the above correction worked for me as expected. thanks once again.
      IMO s/\r?\n// is more general as it removes \r only if present (Windows) yet \n everytime (both Windows and Un*x). (No one cares of old MacOS (-; )